bioinfo-biols / ciri-full Goto Github PK
View Code? Open in Web Editor NEWFull length circRNA reconstruction and quantification using BSJ and reverse overlap (RO) features.
Full length circRNA reconstruction and quantification using BSJ and reverse overlap (RO) features.
您好!
请教一下您这一步数据分类的具体数据清洗是怎样的一个逻辑!
while (line.substring(0, 1).equals("@") == true) {
String[] tmphead = line.split(" ");
if (tmphead[0].equals("@SQ")) {
String[] tmphead1 = tmphead[1].split("\\:");
String[] tmphead2 = tmphead[2].split("\\:");
// System.out.println(tmphead1[1]);
if (Integer.parseInt(tmphead2[1]) > 500000)
name.add(tmphead1[1]);
}
line = reader.readLine();
///part the file with chr;
}
File[] tmpfile = new File[name.size()];
int mat = 0;
while (mat < name.size()) {
tmpfile[mat] = File.createTempFile("tmp" + name.get(mat) + "_", ".txt", f);
tmpfile[mat].deleteOnExit();
// System.out.println(tmpfile[mat]);
map.put(name.get(mat), tmpfile[mat]);
mat++;
}
int onepart = 200000;
int linenum = 0;
ArrayList<String> text = new ArrayList<String>();
while (line != null) {
String[] tmpt = line.split(" ");
if (!tmpt[2].equals("*")) {
text.add(line);
linenum++;
} else
num5++;
if (linenum > onepart) {
String A = line;
line = reader.readLine();
String[] tmpt2 = line.split(" ");
while (tmpt[0].equals(tmpt2[0])) {
text.add(line);
A = line;
line = reader.readLine();
tmpt = A.split(" ");
tmpt2 = line.split(" ");
}
String[] G1 = new String[10000];
String[] tmp1;
mat = 0;
while (mat < name.size()) {
FileOutputStream out = new FileOutputStream(tmpfile[mat], true);
PrintStream p1 = new PrintStream(out);
int k = 1;
int n = 0;
while (k - 1 < text.size()) {
int p;
tmp1 = text.get(k - 1).split(" ");
if (k >= text.size())
p = 1;
else {
String[] tmp2 = text.get(k).split(" ");
if (tmp1[0].equals(tmp2[0]) == true)
p = 0;
else
p = 1;
}
if (p == 0) {
G1[n] = text.get(k - 1);
n++;
} else {
G1[n] = text.get(k - 1);
String[] tmp = G1[0].split(" ");
// System.out.println(map.get(tmpfile[mat]));
if (tmp[2].equals(name.get(mat))) {
int nn = 0;
while (nn <= n) {
p1.println(G1[nn]);
nn++;
}
}
n = 0;
}
k++;
}
p1.close();
mat++;
}
text = new ArrayList<String>();
linenum = 0;
System.out.print(".");
} else {
line = reader.readLine();
}
}
if (linenum > 0) {
String[] G1 = new String[10000];
String[] tmp1;
mat = 0;
while (mat < name.size()) {
FileOutputStream out = new FileOutputStream(tmpfile[mat], true);
PrintStream p1 = new PrintStream(out);
int k = 1;
int n = 0;
while (k - 1 < text.size()) {
int p;
tmp1 = text.get(k - 1).split(" ");
if (k >= text.size())
p = 1;
else {
String[] tmp2 = text.get(k).split(" ");
if (tmp1[0].equals(tmp2[0]) == true)
p = 0;
else
p = 1;
}
if (p == 0) {
G1[n] = text.get(k - 1);
n++;
} else {
G1[n] = text.get(k - 1);
String[] tmp = G1[0].split(" ");
// System.out.println(map.get(tmpfile[mat]));
if (tmp[2].equals(name.get(mat))) {
int nn = 0;
while (nn <= n) {
p1.println(G1[nn]);
nn++;
}
}
n = 0;
}
k++;
}
p1.close();
mat++;
}
text = new ArrayList<String>();
linenum = 0;
System.out.print(".");
}
reader.close();
System.out.println("Apart completed");
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.