daveuu / baga

Bacterial and Archaeal Genome Analyser
GNU General Public License v3.0
9 stars 2 forks source link

avoid trimming #3

Closed pauruihu closed 8 years ago

pauruihu commented 8 years ago

Hello again! What would you recommend to change in order to avoid the trimming step and complete the whole process? I thought about it because my reads are already preprocessed and cleaned. I understand that if I just eliminate that step there may be some outputs not generated that are necessary to continue... Thank you (I'm looking forward to the documentation ;))

daveuu commented 8 years ago

Hi, This is an excellent feature request. I added an option --prepared to the AlignReads commands allowing you to skip the PrepareReads module and go straight from CollectData to AlignReads. First update BAGA with these commands:

cd baga
git fetch origin
git reset --hard origin/master
cd ..

Then a typical work flow could look like this (the last command uses the new --prepared option):

baga/baga_cli.py Dependencies \
--checkgetfor CollectData

baga/baga_cli.py CollectData \
--reads_group_name myreads \
--reads_path reads/*_R[12]_*.fastq.gz  # shell expansion pattern to match one or more pairs of reads

baga/baga_cli.py CollectData \
--genomes <chromosome/genome accession number> \
--email <your email address for NCBIs Entrez system>

baga/baga_cli.py Dependencies \
--checkgetfor AlignReads

baga/baga_cli.py AlignReads \
--reads_name myreads \
--genome_name <chromosome/genome accession number as saved by BAGA> \
--prepared \
--align

Let me know if that works for you. I'll add this to the manual that is almost done!

pauruihu commented 8 years ago

Wow, how quick! I'm going to try, I will tell you later. Thank you!!!

pauruihu commented 8 years ago

It's working :) It's on the AlignReads step and there's no problem by now. But I couldn't update it with git command, I download again the baga_cli.py file instead. Thank you again and sorry for the inconvenience.

daveuu commented 8 years ago

This is not an inconvenience, it is valuable user feedback that led to an enhancement which hopefully we can all benefit from. Thanks! Let me know any other problems or suggestions. (documentation is almost there . . .)

daveuu commented 8 years ago

Documentation is here: https://baga.readthedocs.org/en/latest/ Fell free to raise another issue if anything doesn't work etc. Thanks for the feedback.

pauruihu commented 8 years ago

Great! Thank you for solving my doubts as quick as you did. I'll tell you if anything comes to my mind ;)