Commit fc0511f0 authored by Laure QUINTRIC's avatar Laure QUINTRIC
Browse files

format data for frogs

parent 57cd09f7
......@@ -127,6 +127,10 @@ if __name__ == '__main__':
logger.debug("job number : {}".format(out))
#create frogs archive
cmd="cd {}/frogs; tar cvf samples.tar *_{{R1,R2}}.fastq.gz && rm {}/frogs/*_{{R1,R2}}.fastq.gz".format(output, output)
#check if number of generated files is ok
cmd="qsub -o {}/logs -V -W depend=afterok:{} {}/check.pbs".format(output,":".join(jobs), directory)
check = runcmd(cmd).strip().split(".")[0]
......@@ -223,14 +223,9 @@ if __name__ == '__main__':
logging.debug("Primer forward {} = {}".format(barcode, forward))
logging.debug("Primer reverse {} = {}".format(barcode, reverse))
os.system("mkdir -p {}/frogs".format(outdir))
cmd="mkdir -p {}/frogs".format(outdir)
# Extract Forward and Reverse Reads according to Primers (using cutadapt)
extractReads(inR1, inR2, outdir, forward, reverse, mismatch, tmpdir, trimreads)
#create frogs archive
cmd="cd {}/frogs; tar cvf samples.tar *_{{R1,R2}}.fastq.gz".format(outdir)
cmd="rm {}/frogs/*_{{R1,R2}}.fastq.gz".format(outdir)
logging.debug("End of processing")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment