-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path 'analyze' does not exist #19
Comments
Hi @Anto007 , You can check the documentation for the current version (0.50beta) here: pydamage.readthedocs.io/en/0.50beta |
Ah I get it now; I'm using 0.50beta version and thank you for your response. This would mean that the filter option won't be available too correct? Also, can you let me know where I can find the pjd value in the output result csv from running the current version? I would appreciate it if you could share here the exact tools/command-lines that you used to generate the sorted and indexed input bam file. Super-interesting tool btw and thank you for bringing this out |
Thanks for your response. By pjd value (sorry I didn't make this clear), I'm referring to the 'p<=0.6' mentioned on the legend of your preprint figure 6. The command-line (bowtie2?) that I was mainly looking for is the one that you used for read mapping to the metagenomic assembly so as to generate the bam file in the first place. |
Hey @Anto007 , By the way, PyDamage 0.6 has been released, so you now have access to the The bowtie2 command line we used is the following: bowtie2-build contigs.fa db_name
bowtie2 -x db_name -1 fwd.fastq -2 rev.fastq --very-sensitive -N 1 | samtools view -S -b -F 4 - | samtools sort - > result.sorted.bam You can see more details here Maxime |
Thanks for your response; I was just testing out PyDamage 0.6 from within a conda environment and I'm guessing there's a bug with the filter command? I'm of course aware that filtering can be done anywhere and nobody needs to depend on the pydamage -filter command per se :-) I get the error "FileNotFoundError: [Errno 2] No such file or directory: 'pydamage_results/pydamage_filtered_results.csv' when I run the below command-line from within the pydamage_results subdirectory: pydamage filter -t 0.67 pydamage_results.csv When I do head -n3 on pydamage_results.csv, I get the below and so main result file is not empty or anything reference,predicted_accuracy,null_model_p0,null_model_p0_stdev,damage_model_p,damage_model_p_stdev,damage_model_pmin,damage_model_pmin_stdev,damage_model_pmax,damage_model_pmax_stdev,pvalue,qvalue,RMSE,nb_reads_aligned,coverage,reflen,CtoT-0,CtoT-1,CtoT-2,CtoT-3,CtoT-4,CtoT-5,CtoT-6,CtoT-7,CtoT-8,CtoT-9,CtoT-10,CtoT-11,CtoT-12,CtoT-13,CtoT-14,CtoT-15,CtoT-16,CtoT-17,CtoT-18,CtoT-19 The same error "FileNotFoundError: [Errno 2] No such file or directory" when I specified the full path too: pydamage filter -t 0.67 /home/anto/Downloads/pydamage_test_output/pydamage_results.csv |
Hi @Anto007 , I'll make this more clear and flexible in the next release of PyDamage, thanks for the feedback ! |
I'm sure this is a silly problem with my interpretation of the command-line from the manual but any suggestion would be appreciated here. I ran the below command-line from within the conda environment
pydamage --outdir pydamage_test analyze aligned.bam
and I got this error message: "Error: Invalid value for 'BAM': Path 'analyze' does not exist"
Oddly, doing pydamage aligned.bam generates output but then doing 'pydamage filter pydamage_results.csv' for the output returns the same kind of above error- "Path 'filter' does not exist". It might be also useful to mention in the manual what exact tool and command-lines were used to generate your bam input file. I'm trying to test now with your aligned.bam file that is available on this repository
The text was updated successfully, but these errors were encountered: