# HG changeset patch # User ebi-gxa # Date 1647481575 0 # Node ID 6e13890afaef5d680cb94f9e16009968bd5220c8 "planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/tree/develop/tools/qc/fastq_pair commit e8517297f4bf2ab5afc544e6af7bb4c5f152dd3e" diff -r 000000000000 -r 6e13890afaef fastq_pair.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fastq_pair.xml Thu Mar 17 01:46:15 2022 +0000 @@ -0,0 +1,129 @@ + + Rewrite paired-end fastq files to make sure that all reads have a mate and to separate out singletons. + + fastq-pair + + 1.fq && + #else: + mv '$fastq1' 1.fq && + #end if + + #if $fastq2.is_of_type("fastqsanger.gz"): + gzip -d -c '$fastq2' > 2.fq && + #else: + mv '$fastq2' 2.fq && + #end if + + + ## Run fastq_pair + fastq_pair + + #if $table_size: + -t '$table_size' + #end if + + #if $print_elements: + -p '$print_elements' + #end if + + #if $verbose: + '$verbose' + #end if + + 1.fq 2.fq + + ## Compress outputs + #if $compress == "yes": + ; gzip 1.fq.paired.fq + ; gzip 2.fq.paired.fq + ; gzip 1.fq.single.fq + ; gzip 2.fq.single.fq + #end if + + ]]> + + + + + + + + + + + compress == False + + + + + + + compress + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10.1101/552885 + + diff -r 000000000000 -r 6e13890afaef get_test_data.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get_test_data.sh Thu Mar 17 01:46:15 2022 +0000 @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +BASE_LINK="https://raw.githubusercontent.com/linsalrob/fastq-pair/master/test" + +LEFT_FILE="left.fastq" +RIGHT_FILE="right.fastq" +LEFTGZ_FILE="left.fastq.gz" +RIGHTGZ_FILE="right.fastq.gz" + +LEFT_LINK=$BASE_LINK"/"$LEFT_FILE +RIGHT_LINK=$BASE_LINK"/"$RIGHT_FILE +LEFTGZ_LINK=$BASE_LINK"/"$LEFTGZ_FILE +RIGHTGZ_LINK=$BASE_LINK"/"$RIGHTGZ_FILE + +function get_data { + local link=$1 + local fname=$2 + + if [ ! -f $fname ]; then + echo "$fname not available locally, downloading.." + wget -O $fname --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 3 $link + fi +} + +# Get test data +pushd test-data + +get_data $LEFT_LINK $LEFT_FILE +get_data $RIGHT_LINK $RIGHT_FILE +get_data $LEFTGZ_LINK $LEFTGZ_FILE +get_data $RIGHTGZ_LINK $RIGHTGZ_FILE