mieaa.API.convert_mirbase¶
-
API.
convert_mirbase
(mirnas: Union[str, Iterable[str], IO], from_version: float, to_version: float, mirna_type: str, to_file: Union[str, IO] = '', **kwargs) → List[str]¶ Convert a set of either miRNAs/precursors from one miRbase version to another
Parameters: - mirnas (str or iterable) – Iterable or delimited string of miRNAs, e.g. ‘hsa-miR-199a-5p,hsa-mir-550b-1;’
- from_version (float) – MiRbase version to convert ‘mirnas’ from.
- to_version (float) – MiRbase version to update ‘mirnas’ to.
- mirna_type (str) – miRNAs/precursors to convert * precursor - Precursor to a mature miRNA, e.g. hsa-mir-550b-1 * mirna - Mature miRNA, e.g. hsa-miR-199a-5p Mixed input is not currently supported.
- to_file (str or file-type, optional) – if non-empty, save results to provided file name/path
- **kwargs –
- output_format (str, default=’oneline’)
- oneline - Text containing only converted ids
- tabsep - Tab-separated input and output id
Returns: Converted miRNAs
Return type: list