get_fasta_sequence_by_param

Entrez.get_fasta_sequence_by_param(accession_id, start_pos, stop_pos, strand)[source]

Get FASTA string from NCBI database by accesion_id

Parameters
  • accession_id (str) – Accession number of the “Nucleotide” database of NCBI.

  • start_pos (Union[str, int]) – Start position of sequence to crop

  • stop_pos (Union[str, int]) – Stop position of the sequence to crop

  • strand (Union[str, int]) – Strand of the sequence. Can be either “1” or “2”. For more details check NCBI documentation.

Returns

Return type

String with sequnce in FASTA format.