Accession
- magna.ncbi.accession.is_valid_ncbi_gid(gid)
Check if the NCBI accession matches the expected format.
- Parameters
gid (
str
) – The NCBI accession to check.- Return type
bool
- Returns
True if the accession is valid, False otherwise.
Examples
>>> is_valid_ncbi_gid('GC_000001.1') False
>>> is_valid_ncbi_gid('GCA_123456789.1') True