Last active
December 18, 2019 08:20
-
-
Save gkarthik/61d22bfcfb5c4b69bd6f6edd71ccc39c to your computer and use it in GitHub Desktop.
Create samples.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Naming scheme -> <samplename>_R1.fastq.gz and <samplename>_R2.fastq.gz | |
echo -e "forward\treverse\tsample\tsample_library" > samples.tsv | |
find /path/to/folder -name "*.fastq.gz" | sort | xargs -n 2 bash -c 'name=$(basename $0 | cut -f 1 -d _);echo -e "$0\t$1\t${name}\t${name}_L1"' >> samples.tsv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment