-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README file updated, Git repository restructured, Sequence_handler fo…
…lder added with sequence analysis tools
- Loading branch information
Sergi
committed
Nov 28, 2019
1 parent
b6dcf17
commit 6764d17
Showing
48 changed files
with
766 additions
and
36 deletions.
There are no files selected for viewing
Binary file not shown.
File renamed without changes.
Binary file not shown.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Global imports | ||
import glob | ||
import argparse as ap | ||
import pandas as pd | ||
|
||
# Script information | ||
__author__ = "Sergi Rodà Llordés" | ||
__version__ ="1.0" | ||
__maintainer__="Sergi Rodà Llordés" | ||
__email__="[email protected]" | ||
|
||
def storePDBfilenames(PDBs_to_parse,parser): | ||
""" | ||
It identifies the reports to add to the protein preparation system | ||
PARAMETERS | ||
---------- | ||
PDBs_to_parse : list of strings | ||
all the PDB files that want to be added to the analysis | ||
RETURNS | ||
------- | ||
parsed_data : list of PDB filenames (strings) | ||
""" | ||
|
||
PDBs = [] | ||
|
||
for PDBs_list in PDBs_to_parse: | ||
PDB_found = glob.glob(PDBs_list) | ||
if len(PDB_found) == 0: | ||
print("Warning: path to report file \'" + | ||
"{}".format(PDBs_list) + "\' not found.") | ||
for PDB in PDB_found: | ||
PDBs.append(PDB) | ||
|
||
if len(PDBs) == 0: | ||
print("Error: list of report files is empty.") | ||
parser.print_help() | ||
exit(1) | ||
|
||
return PDBs | ||
|
||
def parseArgs(): | ||
""" | ||
Parse arguments from command-line | ||
RETURNS | ||
------- | ||
PDBfiles : list | ||
list of PDB files | ||
""" | ||
|
||
parser = ap.ArgumentParser() | ||
required = parser.add_argument_group('required arguments') | ||
optional = parser._action_groups.pop() | ||
required.add_argument("-i", "--input", required=True, metavar="FILE", | ||
type=str, nargs='*', help="path to PDB files") | ||
required.add_argument("-c","--csv", required=True, metavar="FILE", | ||
type=str,help="path of csv file with the other protein features") | ||
optional.add_argument("-CP","--computeprops" | ||
,help = "Compute the SiteMap descriptors", action = "store_true") | ||
args = parser.parse_args() | ||
|
||
PDBfiles = storePDBfilenames(args.input,parser) | ||
csv = args.csv | ||
computeprops = args.computeprops | ||
|
||
return PDBfiles, csv, computeprops |
Binary file not shown.
Binary file added
BIN
+4.23 KB
PELEAnalysis-Processing/Esterases/__pycache__/ActiveSitepKa.cpython-37.pyc
Binary file not shown.
Binary file added
BIN
+13.7 KB
PELEAnalysis-Processing/Esterases/__pycache__/Esterase.cpython-37.pyc
Binary file not shown.
Binary file added
BIN
+1.93 KB
PELEAnalysis-Processing/Esterases/__pycache__/PDBOpener.cpython-37.pyc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+1.23 KB
PELEAnalysis-Processing/PELE_scripts/__pycache__/PELEParseReports.cpython-36.pyc
Binary file not shown.
Binary file renamed
BIN
+1.17 KB
...pycache__/PELEParseReports.cpython-37.pyc → ...pycache__/PELEParseReports.cpython-37.pyc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+2.65 KB
PELEAnalysis-Processing/Preprocessing/__pycache__/PDBProcessor4PELE.cpython-37.pyc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.