-
Notifications
You must be signed in to change notification settings - Fork 5
nucleotide fasta to Masterfile #49
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
Comments
Hi, Thank you! |
I'm also running into this issue. @natacha-beck or @bflang could you add a conversion tool to the docker image? |
+1 |
Same problem. |
I thought this was a binding problem and tried this, but still got an error. docker run --mount type=bind,src=/media/storage/r12.36_organelle_annotation/mt/,dst=/home/ docker.io/nbeck/mfannot mfannot /home/media/storage/r12.36_organelle_annotation/mt/r12.1_doryanthes_mt.fasta No masterfile found docker run --volume /media/storage/r12.36_organelle_annotation/mt/:/home/ docker.io/nbeck/mfannot mfannot /home/media/storage/r12.36_organelle_annotation/mt/r12.1_doryanthes_mt.fasta No masterfile found |
Similarly, just trying to list any directory in the container results in a permission denied - so the container is read-only and cannot bind local data. |
Also tried below. Same error. docker run -v $(pwd):/work:rw -w /work docker.io/nbeck/mfannot mfannot r12.1_doryanthes_mt.fasta docker run -ti -v $(pwd):/work -w /work --mount type=tmpfs,destination=/work/tmp docker.io/nbeck/mfannot mfannot r12.1_doryanthes_mt.fasta |
Hi @tallnuttrbgv, here is a basic workflow that has worked for me. MFAnnot can be a bit temperamental. # start container, attach dir with genomes as "mito-data"
docker run --rm -it -v ~/Desktop/mito_test:/mito-data nbeck/mfannot:latest
# Add your custom submitter details file to the correct path
cp mito-data/SubmitterAdam.sbt $MF2SQN_LIB/mf2sqn_Submitters/
# open mito-data dir
cd mito-data
# Run mfannot
mfannot --sqn -g 4 --logfile my_mito_new.log --outputfile my_mito.masterfile my_mito_genome.fasta
# Create Masterfile with custom submitter data
mf2sqn -d -t -a Adam -m my_mito.masterfile
# Note: May need to re-run after editing my_mito.masterfile.subInfo if the custom submitter info was not picked up correctly.
# Note: Can usually skip this, but may need to manually run the tbl and fsa files through tbl2asn.
# tbl2asn -i my_mito.masterfile.tbl
# Convert to genbank fmt
# Note: May need to get asn2gb from bioconda if this doesn't work
asn2gb -i my-output.sqn -f b -o my-mito.gbk |
Thanks! But can you tell me what this is? There is no mention of it I can find in the docs, I do not need a sqn file. Add your custom submitter details file to the correct path |
Also - same error: docker run --rm -it -v /media/storage/r12.36_organelle_annotation/mt-test/:/mito-data nbeck/mfannot:latest cd mito-data root@57e4008fb947:/mito-data# mfannot --logfile my_mito_new.log --outputfile my_mito.masterfile r12.1_doryanthes_mt.fasta |
Can you post the contents of Also check the output of |
root@57e4008fb947:/mito-data# cat my_mito_new.log Do you know where 'printenv' file is? Also So perhaps a permissions problem? I think that docker may be a dead-end for me because I need to script annotation of many mitomes. I have local install of mfannot working but without tRNAs - If I include RNAfinder I get "Can't use an undefined value as an ARRAY reference at /g/data/nm31/bin/Mfannot/mfannot line 5746." and it fails. So I may need to run it without RNAfinder and run tRNAscan manually. Thanks. |
Please run this: docker run --rm -it -v /media/storage/r12.36_organelle_annotation/mt-test/:/mito-data nbeck/mfannot:latest
whoami
ls -lah mito-data Post the results of those two commands. You may need to change the permissions on the mounted dir, try: chmod -R 666 mito-data Then try to run mfannot as before. |
I am using a singularity image now that is working to some extent. Some problems with converting the output, using mfannot2gff.pl at the moment but it can't parse multi gene copies which I am working on. Thanks for your help. |
Hi,@natacha-beck !
I am trying to run MFannot locally, from docker-container. Am I right, that the only input format is the Masterfile? How can I get a Masterfile from nucleotide fasta?
I am running
sudo docker run nbeck/mfannot mfannot --genetic 4 --outputfile my.out --logfile my.log --T (pwd)/tmp my.fasta
and I have an error
No masterfile found
The text was updated successfully, but these errors were encountered: