jade.basic.path.get_Jade_root()[source]

Get the root path of Jade directory. :rtype: str

jade.basic.path.get_all_pdb_paths(directory, ext='.pdb')[source]
jade.basic.path.get_all_pdbs(directory, ext='.pdb')[source]
jade.basic.path.get_bin_path()[source]

Get the path to the Jade apps directory :rtype: str

jade.basic.path.get_database_path()[source]

Get the path to the Jade Database :rtype: str

jade.basic.path.get_database_testing_path()[source]

Get the path to the database testing file. :return:

jade.basic.path.get_decoy_extension(decoy)[source]

Return the extension of the decoy. .pdb, .pdb.gz, .cif, .cif.gz, etc. :param decoy: str :rtype: str

jade.basic.path.get_decoy_name(decoy)[source]

Get the decoy name from path or name, whether .pdb, .pdb.gz or no extension. :param decoy: :rtype:str

jade.basic.path.get_decoy_path(decoy, alternate_paths=None)[source]

Search .pdb, .pdb.gz, .cif, .cif.gz, .xml, .xml.gz In addition, Search alternative search paths. Return found path or NONE.

Parameters:
  • decoy
  • alternate_paths

:rtype:str

jade.basic.path.get_directories_recursively(inpath)[source]

Get a list of directories recursively in a path. Skips hidden directories. :param inpath: str :rtype: list

jade.basic.path.get_file_paths(pattern, dir, ext='.pdb')[source]

Get file paths matching the exact pattern and extension. :param pattern: :param dir: :param ext: :return:

jade.basic.path.get_make_get_dirs(root, dirs)[source]

Recursively make dirs and return the final path :param root: :param dirs: :rtype: str

jade.basic.path.get_matching_pdbs(directory, pattern, ext='.pdb')[source]

Get pdbs in a directory matching a pattern. :param directory: :param pattern: :param ext: :return:

jade.basic.path.get_nnk_database_path()[source]
jade.basic.path.get_pdb_path(decoy, alternate_paths=None)[source]
jade.basic.path.get_rosetta_features_json_path()[source]
jade.basic.path.get_rosetta_features_root()[source]

Get the path to Rosetta features directory through set ROSETTA3_DB env variable. :rtype: str

jade.basic.path.get_rosetta_features_run_script()[source]

Get the path to Rosetta features script dir through the set ROSETTA3_DB env variable. :rtype: str

jade.basic.path.get_rosetta_flags_path()[source]
jade.basic.path.get_rosetta_json_run_path()[source]
jade.basic.path.get_testing_inputs_path()[source]

Get the path to testing inputs (PDBs,fasta,etc.) :rtype:str

jade.basic.path.get_testing_path()[source]

Get the path to the Jade testing directory :rtype: str

jade.basic.path.get_xml_scripts_path()[source]

Get the path to the Rosetta xml script directory. Useful for variable substitutions. :rtype: str

jade.basic.path.make_dir_if_not_exists(dir)[source]
jade.basic.path.open_file(file_path, mode='r')[source]

Open a file which can be gzipped.

Parameters:
  • file_path
  • mode
Returns:

jade.basic.path.parse_contents(file_path)[source]

Return a list of (stripped) content, skipping empty lines and comments. :param file: string :rtype: list