Home | Trees | Indices | Help |
|
---|
|
|
|||
| __init__(self, outFolder='.', clusterLimit=20, verbose=1, log=None, silent=0) | ||
|
prepareFolders(self) Create folders needed by this class. |
||
{'pdb':str, 'chain':str } ]
|
getSequenceIDs(self,
blast_records) Extract sequence ids (pdb codes and chain ID) from BlastParser result. |
||
{ str: Bio.Fasta.Record }
|
fastaFromIds(self,
db,
id_lst,
fastaOut=None) Use: |
||
open file handle
|
getLocalPDB(self,
id,
db_path=settings.pdb_path) Get the coordinate file from a local pdb database. |
||
open file handle
|
getRemotePDB(self,
id,
rcsb_url=settings.rcsb_url) Get the coordinate file remotely from the RCSB. |
||
{'resolution':float }
|
__extractPDBInfos(self,
handle) Extract extra infos from PDB file. |
||
[str]
|
retrievePDBs(self,
outFolder=None,
pdbCodes=None) Get PDB from local database if it exists, if not try to download the coordinartes drom the RSCB. |
||
Bio.Fasta.Record
|
selectFasta(self,
ids_in_cluster) select one member of cluster of sequences. |
||
|
reportClustering(self,
raw=None) Report the clustering result. |
||
{str, str}
|
saveClustered(self,
outFolder=None) Copy best PDB of each cluster into another folder. |
||
Inherited from |
|
|||
|
NMR_RESOLUTION = 3.5
|
||
|
F_RESULT_FOLDER = '/templates'
|
||
|
F_FASTA_ALL = F_RESULT_FOLDER+ '/all.fasta'
|
||
|
F_FASTA_NR = F_RESULT_FOLDER+ '/nr.fasta'
|
||
|
F_CLUSTER_RAW = F_RESULT_FOLDER+ '/cluster_raw.out'
|
||
|
F_CLUSTER_LOG = F_RESULT_FOLDER+ '/cluster_result.out'
|
||
|
F_BLAST_OUT = F_RESULT_FOLDER+ '/blast.out'
|
||
|
F_CLUSTER_BLAST_OUT = F_RESULT_FOLDER+ '/cluster_blast.out'
|
||
|
F_ALL = F_RESULT_FOLDER+ '/all'
|
||
|
F_NR = F_RESULT_FOLDER+ '/nr'
|
||
|
F_CHAIN_INDEX = '/chain_index.txt'
|
||
Inherited from |
|
|
Create folders needed by this class. |
Extract sequence ids (pdb codes and chain ID) from BlastParser result.
|
Use: fastaFromIds( id_lst, fastaOut ) -> { str: Bio.Fasta.Record }
|
Get the coordinate file from a local pdb database.
|
Get the coordinate file remotely from the RCSB.
|
Extract extra infos from PDB file. NMR files get resolution 3.5.
|
Get PDB from local database if it exists, if not try to download the coordinartes drom the RSCB. Write PDBs for given fasta records. Add PDB infos to internal dictionary of fasta records. NMR structures get resolution 3.5.
|
select one member of cluster of sequences.
|
Report the clustering result. Writes:
|
Copy best PDB of each cluster into another folder. Create index file in same folder. The returned dictionary or index file (F_CHAIN_INDEX) is used as input to TemplateCleaner.
|
|
NMR_RESOLUTION
|
F_RESULT_FOLDER
|
F_FASTA_ALL
|
F_FASTA_NR
|
F_CLUSTER_RAW
|
F_CLUSTER_LOG
|
F_BLAST_OUT
|
F_CLUSTER_BLAST_OUT
|
F_ALL
|
F_NR
|
F_CHAIN_INDEX
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Dec 22 20:11:44 2006 | http://epydoc.sourceforge.net |