GenGraph icon indicating copy to clipboard operation
GenGraph copied to clipboard

No such file or directory: 'globalAlignment_khush.backbone'

Open Logan1x opened this issue 4 years ago • 10 comments

Hey, I am trying to run example code in your repo(sequences.txt) with some modifications in local system but I am having this problem.

$ python3 ./gengraphTool.py make_genome_graph --seq_file sequences.txt --out_file_name khush --recreate_check
Running GenGraph Toolkit
Creating genome graph
[OrderedDict([('seq_name', 'H37Rv'), ('aln_name', 'seq0'), ('seq_path', '/home/noob/Documents/IIITD/tavlab/strainflow/GenGraph-master/TestGraphs/H37Rv.fa'), ('annotation_path', 'NA')]), OrderedDict([('seq_name', 'H37Rv1'), ('aln_name', 'seq1'), ('seq_path', '/home/noob/Documents/IIITD/tavlab/strainflow/GenGraph-master/TestGraphs/H37Rv1.fa'), ('annotation_path', 'Na')]), OrderedDict([('seq_name', 'H37Rv2'), ('aln_name', 'seq2'), ('seq_path', '/home/noob/Documents/IIITD/tavlab/strainflow/GenGraph-master/TestGraphs/H37Rv2.fa'), ('annotation_path', 'Na')])]
Conducting progressiveMauve
progressiveMauve Complete
Traceback (most recent call last):
  File "./gengraphTool.py", line 136, in <module>
    genome_aln_graph = bbone_to_initGraph(bbone_file, parsed_input_dict)
  File "/home/noob/Documents/IIITD/tavlab/strainflow/GenGraph-master/gengraph.py", line 1616, in bbone_to_initGraph
    backbone_lol = input_parser(bbone_file)
  File "/home/noob/Documents/IIITD/tavlab/strainflow/GenGraph-master/gengraph.py", line 1189, in input_parser
    in_file = open(file_path, 'r')
FileNotFoundError: [Errno 2] No such file or directory: 'globalAlignment_khush.backbone'

Can you please help me out?

Also, I have one more question to ask, Can I make De-Bruijn Directed graph using this library?

Logan1x avatar Mar 19 '21 15:03 Logan1x

@jambler24 Can you help me out?

Logan1x avatar Mar 21 '21 15:03 Logan1x

I had the same error and the problem was that i hadn't installed the progressiveMauve tool as indicated in Wiki. Once you have installed progressiveMauve, it is useful to move the bin in you PATH (/bin for example) so you can call progressiveMauve from command line. Everything is correct when you run progressiveMauve from command line and get response other than the command not found

minu7 avatar Mar 22 '21 08:03 minu7

it is useful to move the bin in you PATH

Can you help me with this, I am using Linux. I just downloaded the zip, which has Mauve.

Logan1x avatar Mar 22 '21 10:03 Logan1x

In the zip you should have the progressiveMauve and you need to copy it to / bin

minu7 avatar Mar 22 '21 13:03 minu7

Hey, thanks for the input @minu7 !

If it is a problem with mauve not being in your path, you can also specify where it is with:

--progressiveMauve_path /path/to/progressiveMauve

Otherwise:

https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path

jambler24 avatar Mar 23 '21 09:03 jambler24

Will make a note for a better error message. Please let us know here if that solved the problem.

jambler24 avatar Mar 23 '21 09:03 jambler24

so I did ran by giving external path with progressiveMauve_path flag but It seems to get another error,

$ python ./gengraphTool.py make_genome_graph --seq_file sequences.txt --out_file_name khush --recreate_check --progressiveMauve_path /home/noob/Downloads/mauve_snapshot_2015-02-13/linux-x64/progressiveMauve
Running GenGraph Toolkit
Creating genome graph
[OrderedDict([('seq_name', 'H37Rv'), ('aln_name', 'seq0'), ('seq_path', '/home/noob/Documents/IIITD/tavlab/strainflow/GenGraph-master/TestGraphs/H37Rv.fa'), ('annotation_path', 'NA')]), OrderedDict([('seq_name', 'H37Rv1'), ('aln_name', 'seq1'), ('seq_path', '/home/noob/Documents/IIITD/tavlab/strainflow/GenGraph-master/TestGraphs/H37Rv1.fa'), ('annotation_path', 'Na')]), OrderedDict([('seq_name', 'H37Rv2'), ('aln_name', 'seq2'), ('seq_path', '/home/noob/Documents/IIITD/tavlab/strainflow/GenGraph-master/TestGraphs/H37Rv2.fa'), ('annotation_path', 'Na')])]
Conducting progressiveMauve
Error: progressiveMauve_call output appears empty.

Logan1x avatar Mar 25 '21 13:03 Logan1x

Try to pull the latest library update and try again

minu7 avatar Mar 25 '21 17:03 minu7

Thanks I'll try that.

Logan1x avatar Mar 27 '21 10:03 Logan1x

Hey,I use windows,I had installed progressiveMauve,Next, how can I use it in pycharm under windows system, thank you

8banzhuan avatar Apr 07 '22 16:04 8banzhuan