Skip to content
Snippets Groups Projects
Commit cf811479 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix datasets path in gga_get_data.py

parent 74cb81fc
No related branches found
No related tags found
2 merge requests!12Release_2.0 next,!9Release 2.0 (merge dev to master)
This commit is part of merge request !12. Comments created here will be created in the context of that merge request.
...@@ -88,18 +88,14 @@ class GetData(speciesData.SpeciesData): ...@@ -88,18 +88,14 @@ class GetData(speciesData.SpeciesData):
organism_annotation_dir = os.path.abspath("./src_data/annotation/{0}/OGS{1}".format(self.species_folder_name, self.ogs_version)) organism_annotation_dir = os.path.abspath("./src_data/annotation/{0}/OGS{1}".format(self.species_folder_name, self.ogs_version))
organism_genome_dir = os.path.abspath("./src_data/genome/{0}/v{1}".format(self.species_folder_name, self.genome_version)) organism_genome_dir = os.path.abspath("./src_data/genome/{0}/v{1}".format(self.species_folder_name, self.genome_version))
genome_datasets = [constants.ORG_PARAM_DATA_GENOME_PATH] genome_datasets = {constants.ORG_PARAM_DATA_GENOME_PATH: self.genome_path}
annotation_datasets = [constants.ORG_PARAM_DATA_GFF_PATH, annotation_datasets = {constants.ORG_PARAM_DATA_GFF_PATH: self.gff_path,
constants.ORG_PARAM_DATA_TRANSCRIPTS_PATH, constants.ORG_PARAM_DATA_TRANSCRIPTS_PATH: self.transcripts_path,
constants.ORG_PARAM_DATA_PROTEINS_PATH, constants.ORG_PARAM_DATA_PROTEINS_PATH: self.proteins_path,
constants.ORG_PARAM_DATA_INTERPRO_PATH, constants.ORG_PARAM_DATA_INTERPRO_PATH: self.interpro_path,
constants.ORG_PARAM_DATA_ORTHOFINDER_PATH, constants.ORG_PARAM_DATA_ORTHOFINDER_PATH: self.orthofinder_path,
constants.ORG_PARAM_DATA_BLASTP_PATH, constants.ORG_PARAM_DATA_BLASTP_PATH: self.blastp_path,
constants.ORG_PARAM_DATA_BLASTX_PATH] constants.ORG_PARAM_DATA_BLASTX_PATH: self.blastx_path}
# Where to store blast results?
# search_excluded_datasets = ["interpro_path", "orthofinder_path", "blastp_path", "blastx_path"]
# These datasets will not be searched if missing in the input file
# Copy datasets in the organism src_data dir tree correct folder # Copy datasets in the organism src_data dir tree correct folder
for k, v in genome_datasets.items(): for k, v in genome_datasets.items():
......
...@@ -37,7 +37,7 @@ def parse_config(config_file): ...@@ -37,7 +37,7 @@ def parse_config(config_file):
config_dict = load_yaml(config_file) config_dict = load_yaml(config_file)
if isinstance(config_dict, dict): if isinstance(config_dict, dict):
logging.debug("Config dictionary: {0}".format(config_dict)) #logging.debug("Config dictionary: {0}".format(config_dict))
return config_dict return config_dict
else: else:
logging.critical("Config yaml file is not a dictionary" % config_file) logging.critical("Config yaml file is not a dictionary" % config_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment