omicverse.utils.gtf_to_pair_tsv#
- omicverse.utils.gtf_to_pair_tsv(gtf_path, output_path, gene_id_version=True)[源代码]#
Convert GTF file to gene ID mapping pairs TSV format.
- 参数:
- 返回:
Number of unique genes written to output file.
- 返回类型:
示例
>>> import omicverse as ov >>> # Convert GTF to mapping pairs >>> gene_count = ov.utils.gtf_to_pair_tsv('genes.gtf', 'gene_pairs.tsv') >>> # Use converted file for gene mapping >>> data = ov.bulk.Matrix_ID_mapping(data, 'gene_pairs.tsv')