jambler24 / GenGraph

A repository for the GenGraph toolkit for the creation and manipulation of graph genomes
GNU General Public License v3.0
51 stars 16 forks source link

No such file or directory: 'globalAlignment_khush.backbone' #31

Open Logan1x opened 3 years ago

Logan1x commented 3 years ago

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 commented 3 years ago

@jambler24 Can you help me out?

minu7 commented 3 years ago

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

Logan1x commented 3 years ago

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.

minu7 commented 3 years ago

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

jambler24 commented 3 years ago

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 commented 3 years ago

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

Logan1x commented 3 years ago

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.
minu7 commented 3 years ago

Try to pull the latest library update and try again

Logan1x commented 3 years ago

Thanks I'll try that.

8banzhuan commented 2 years ago

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