# HG changeset patch # User Eduardo # Date 1438597911 -3600 # Node ID 1a837f49fdc9a5217923d1f890900212ec8c9dfd # Parent 65f85eae1776b8417dc030908fd24259156a3d00 cleanup diff -r 65f85eae1776 -r 1a837f49fdc9 download_align.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/download_align.xml Mon Aug 03 11:31:51 2015 +0100 @@ -0,0 +1,53 @@ + + Downloads fastq.gz, unzips, trims with cutadapt and alignes to reference + + cutadapt + bowtie2 + samtools + + + #set index_path = '' + #if str($reference_genome.source) == "history": + echo \${PATH} && bowtie2-build "$reference_genome.own_file" genome && + ln -s "$reference_genome.own_file" genome.fa && + #set index_path = 'genome' + #else: + #set index_path = $reference_genome.index.fields.path + #end if + wget -O - $file | gunzip -c | cutadapt -q 20 - | bowtie2 -q + ## index file path + -x $index_path + -U - | samtools view -b - > $output + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This tool extracts reads from sra, runs cutdapt and bowtie and outputs a bam file. + + Contact Eduardo Alves at eduardoalves@abdn.ac.uk for support and bug reports. + +