Skip to content

Commit

Permalink
fixed bug in CIRI-full Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevinzjy committed Sep 8, 2023
1 parent 5da9bc0 commit 6f18e3c
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
Binary file modified bin/CIRI_Full2$1.class
Binary file not shown.
Binary file modified bin/CIRI_Full2$2.class
Binary file not shown.
Binary file modified bin/CIRI_Full2$3.class
Binary file not shown.
Binary file modified bin/CIRI_Full2$4.class
Binary file not shown.
Binary file modified bin/CIRI_Full2.class
Binary file not shown.
30 changes: 22 additions & 8 deletions src/CIRI_Full2.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,29 @@ public static void main(String[] args) throws InterruptedException, IOException
writeStream1.newLine();
writeStream1.write("bwa mem -T 19 -t "+t+" "+ref+" "+read1+" "+read2+" > "+workdir+"/sam/"+prefix+"_ciri.sam");
writeStream1.newLine();
if(z.indexOf("-0")!=-1){
writeStream1.write("perl "+cdir+ciri+" -I "+workdir+"/sam/"+prefix+"_ciri.sam -O "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -A "+anno+" -T "+t+" -0");
}
else{
writeStream1.write("perl "+cdir+ciri+" -I "+workdir+"/sam/"+prefix+"_ciri.sam -O "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -A "+anno+" -T "+t);

}

if (!anno.equals("")) {
if(z.indexOf("-0")!=-1){
writeStream1.write("perl "+cdir+ciri+" -I "+workdir+"/sam/"+prefix+"_ciri.sam -O "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -A "+anno+" -T "+t+" -0");
}
else {
writeStream1.write("perl "+cdir+ciri+" -I "+workdir+"/sam/"+prefix+"_ciri.sam -O "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -A "+anno+" -T "+t);
}
} else {
if(z.indexOf("-0")!=-1){
writeStream1.write("perl "+cdir+ciri+" -I "+workdir+"/sam/"+prefix+"_ciri.sam -O "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -T "+t+" -0");
}
else {
writeStream1.write("perl "+cdir+ciri+" -I "+workdir+"/sam/"+prefix+"_ciri.sam -O "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -T "+t);
}
}

writeStream1.newLine();
writeStream1.write("perl "+cdir+as+" -S "+workdir+"/sam/"+prefix+"_ciri.sam -C "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -A "+anno+" -O "+workdir+"/CIRI-AS_output/"+prefix+" -D yes");
if (!anno.equals("")) {
writeStream1.write("perl "+cdir+as+" -S "+workdir+"/sam/"+prefix+"_ciri.sam -C "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -A "+anno+" -O "+workdir+"/CIRI-AS_output/"+prefix+" -D yes");
} else {
writeStream1.write("perl "+cdir+as+" -S "+workdir+"/sam/"+prefix+"_ciri.sam -C "+workdir+"/CIRI_output/"+prefix+".ciri -F "+ref+" -O "+workdir+"/CIRI-AS_output/"+prefix+" -D yes");
}
writeStream1.close();
String[] ciri_c={"sh",workdir+"/tmp1.sh"};
Process cirip= Runtime.getRuntime().exec(ciri_c);
Expand Down

0 comments on commit 6f18e3c

Please sign in to comment.