Package org.forester.ws.seqdb
Class SequenceDbWsTools
java.lang.Object
org.forester.ws.seqdb.SequenceDbWsTools
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<UniProtTaxonomy>
getTaxonomiesFromCommonNameStrict
(String cn, int max_taxonomies_return) static List<UniProtTaxonomy>
getTaxonomiesFromId
(String id, int max_taxonomies_return) static List<UniProtTaxonomy>
getTaxonomiesFromScientificNameStrict
(String sn, int max_taxonomies_return) Does not return "sub-types".static List<UniProtTaxonomy>
getTaxonomiesFromTaxonomyCode
(String code, int max_taxonomies_return) static SequenceDatabaseEntry
obtainEmblEntry
(Accession acc) static SequenceDatabaseEntry
obtainEmblEntry
(Accession acc, int max_lines_to_return) static SequenceDatabaseEntry
obtainEntry
(String acc_str) static SequenceDatabaseEntry
static SequenceDatabaseEntry
obtainRefSeqEntryFromEmbl
(Accession acc, int max_lines_to_return) static final Accession
static final void
obtainSeqInformation
(boolean allow_to_set_taxonomic_data, int lines_to_return, SortedSet<String> not_found, PhylogenyNode node) static final void
obtainSeqInformation
(boolean allow_to_set_taxonomic_data, SortedSet<String> not_found, PhylogenyNode node) static final void
obtainSeqInformation
(Phylogeny phy, boolean ext_nodes_only, boolean allow_to_set_taxonomic_data, int lines_to_return) static SequenceDatabaseEntry
obtainUniProtEntry
(String query) static SequenceDatabaseEntry
obtainUniProtEntry
(String query, int max_lines_to_return) queryEmblDb
(Accession acc, int max_lines_to_return) queryEmblDbForRefSeqEntry
(Accession id, int max_lines_to_return) queryUniprot
(String query, int max_lines_to_return)
-
Field Details
-
BASE_UNIPROT_URL
- See Also:
-
DEFAULT_LINES_TO_RETURN
public static final int DEFAULT_LINES_TO_RETURN- See Also:
-
EMBL_DBS_REFSEQ_N
- See Also:
-
EMBL_DBS_REFSEQ_P
- See Also:
-
EMBL_GENBANK
- See Also:
-
EMBL_REFSEQ
- See Also:
-
EMBL_EMBL
- See Also:
-
-
Constructor Details
-
SequenceDbWsTools
public SequenceDbWsTools()
-
-
Method Details
-
getTaxonomiesFromCommonNameStrict
public static List<UniProtTaxonomy> getTaxonomiesFromCommonNameStrict(String cn, int max_taxonomies_return) throws IOException - Throws:
IOException
-
getTaxonomiesFromId
public static List<UniProtTaxonomy> getTaxonomiesFromId(String id, int max_taxonomies_return) throws IOException - Throws:
IOException
-
getTaxonomiesFromScientificNameStrict
public static List<UniProtTaxonomy> getTaxonomiesFromScientificNameStrict(String sn, int max_taxonomies_return) throws IOException Does not return "sub-types". For example, for "Mus musculus" only returns "Mus musculus" and not "Mus musculus", "Mus musculus bactrianus", ...- Throws:
IOException
-
getTaxonomiesFromTaxonomyCode
public static List<UniProtTaxonomy> getTaxonomiesFromTaxonomyCode(String code, int max_taxonomies_return) throws IOException - Throws:
IOException
-
obtainEmblEntry
- Throws:
IOException
-
obtainEmblEntry
public static SequenceDatabaseEntry obtainEmblEntry(Accession acc, int max_lines_to_return) throws IOException - Throws:
IOException
-
obtainEntry
- Throws:
IOException
-
obtainRefSeqEntryFromEmbl
- Throws:
IOException
-
obtainRefSeqEntryFromEmbl
public static SequenceDatabaseEntry obtainRefSeqEntryFromEmbl(Accession acc, int max_lines_to_return) throws IOException - Throws:
IOException
-
obtainSeqAccession
-
obtainSeqInformation
public static final void obtainSeqInformation(boolean allow_to_set_taxonomic_data, int lines_to_return, SortedSet<String> not_found, PhylogenyNode node) throws IOException - Throws:
IOException
-
obtainSeqInformation
public static final void obtainSeqInformation(boolean allow_to_set_taxonomic_data, SortedSet<String> not_found, PhylogenyNode node) throws IOException - Throws:
IOException
-
obtainSeqInformation
public static final SortedSet<String> obtainSeqInformation(Phylogeny phy, boolean ext_nodes_only, boolean allow_to_set_taxonomic_data, int lines_to_return) throws IOException - Throws:
IOException
-
obtainSeqInformation
- Throws:
IOException
-
obtainUniProtEntry
- Throws:
IOException
-
obtainUniProtEntry
public static SequenceDatabaseEntry obtainUniProtEntry(String query, int max_lines_to_return) throws IOException - Throws:
IOException
-
queryDb
public static List<String> queryDb(String query, int max_lines_to_return, String base_url) throws IOException - Throws:
IOException
-
queryEmblDb
- Throws:
IOException
-
queryEmblDbForRefSeqEntry
public static List<String> queryEmblDbForRefSeqEntry(Accession id, int max_lines_to_return) throws IOException - Throws:
IOException
-
queryUniprot
- Throws:
IOException
-