# HG changeset patch # User eduardo # Date 1438358394 14400 # Node ID 0f70e44bbd23c3bcc8e93874706f59c1ea592787 Uploaded diff -r 000000000000 -r 0f70e44bbd23 download_align.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/download_align.xml Fri Jul 31 11:59:54 2015 -0400 @@ -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. + +