VDBWRAIR / ngs_mapper

Genome Mapping Pipeline
GNU General Public License v2.0
8 stars 10 forks source link

Easily create ReadsBySample #231

Open necrolyte2 opened 8 years ago

necrolyte2 commented 8 years ago

https://gist.github.com/necrolyte2/fbd9188edbf58ee57a60e36771c75d78

It has become apparent that this is needed

Dumping this here quickly and we can integrate later(if possible make some simple tests and put in new release coming up)

The linked gist just takes a MiSeq run path and finds *.fastq.gz and then extracts sample name from each of the found files by splitting on _ and taking the first element of the list. Then creates a directory with that name and symlinks or copys the fastq.gz into that directory

necrolyte2 commented 8 years ago

Also, path.py is showing to be really awesome. That script only took me like 10 minutes to make using it. Would have been a lot longer without path.py