changeset 4:8e5694208b79 draft

Uploaded
author p.lucas
date Thu, 08 Aug 2024 07:40:42 +0000
parents f8e542216aea
children 99dae22a6fde
files Prepare_Ssuis_serotypingPipeline.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Prepare_Ssuis_serotypingPipeline.py	Thu Aug 08 07:30:38 2024 +0000
+++ b/Prepare_Ssuis_serotypingPipeline.py	Thu Aug 08 07:40:42 2024 +0000
@@ -57,12 +57,16 @@
   input_path = os.path.splitext(output2)[0]+"_input_file_test/"
   output_path = os.path.splitext(output2)[0]+"_Results/"
   os.system("mkdir -p "+input_path)
-  os.system("cp "+ffile+" "+input_path+"/file_test.fastq") 
   fdir = input_path
 
   if ends == "se":
     f = "SINGLE"
     r = "SINGLE"
+    os.system("cp "+ffile+" "+input_path+"/file_test.fastq")
+
+  elif ends == "pe":
+    os.system("cp "+ffile+" "+input_path+"/file_test"+f+".fastq")
+    os.system("cp "+ffile+" "+input_path+"/file_test"+r+".fastq")
 
   if sd is None:
     os.system("perl "+way_pipeline+"/Ssuis_serotypingPipeline.pl --fastq_directory "+str(fdir)+" --scoreName "+output_path+"Results --ends "+str(ends)+" --forward "+str(f)+" --reverse "+str(r))