transcript / samsa2

SAMSA pipeline, version 2.0. An open-source metatranscriptomics pipeline for analyzing microbiome data, built around DIAMOND and customizable reference databases.
GNU General Public License v3.0
53 stars 36 forks source link

DIAMOND_analysis_counter.py issue #49

Closed marco91sol closed 4 years ago

marco91sol commented 4 years ago

To whom it may concern,

I have created myfile.daa , then I obtain a BLAST m 8 data table (through diamond view). Then, I'd like to aggregate results considering the organism through: $python2 DIAMOND_analysis_counter.py –I final_output –D uniprot_sprot.dmnd –O I have tried, but then as output, I receive this: WARNING: need to specify either organism results (with -O flag in command) or functional results (with -F flag in command)

What am I missing?

Thanks, Marco

transcript commented 4 years ago

Hi Marco,

Interesting. I'll test this, but my first item is you will want to provide the .faa version of the reference database (with the -D command), rather than the DIAMOND-encrypted version.

I'll figure out if it's missing the -O command for some reason when parsing the ARGV.

Sam

transcript commented 4 years ago

Hi Marco,

Found the issue - it looks like you're using an em-dash (longer dash) before the O, while the program looks for single dashes. Unfortunately, Python doesn't like the em-dashes you've got, so I can't really update the code easily to check for them.

This is assuming that the command you copied in is direct - you may want to paste it in a code block in order to avoid any formatting.

I'm not sure how you're running this command (is it through a shell script?), but you may want to convert it to plain ASCII to see if there's any missing or unexpected characters.

Sam