pysam-developers / pysam

Pysam is a Python package for reading, manipulating, and writing genomics data such as SAM/BAM/CRAM and VCF/BCF files. It's a lightweight wrapper of the HTSlib API, the same one that powers samtools, bcftools, and tabix.
https://pysam.readthedocs.io/en/latest/
MIT License
774 stars 274 forks source link

pysam.FastaFile reverse-complement function? #1246

Open jgrg opened 9 months ago

jgrg commented 9 months ago

I was looking at using pysam for handling some FASTA file data for the Tree of Life project, and creating an output assembly. Is there a reverse-complement function available via pysam? I thought pysam would be a nice thing to use since it would also handle bgzipped FASTA. Also wondering about very long sequences. We now have some chromosomes > 2^31 bp long.