I can create a new Genbank record in Biopython with the following code:
from Bio import SeqIO, SeqFeature
from Bio.SeqRecord import SeqRecord
from Bio.Seq import Seq
from Bio.Alphabet import generic_dna
from Bio.Alphabet.IUPAC import IUPACAmbiguousDNA
my_sequence = "ATAGGGACUCATAGATA"
my_record = SeqRecord(Seq(my_sequence, IUPACAmbiguousDNA()))
my_feature_location = SeqFeature.FeatureLocation(2,5, strand=1)
my_feature = SeqFeature.SeqFeature(my_feature_location, type="CDS", id="Cre")
my_feature.qualifiers["foo"] = "bar"
my_record.features.append(my_feature)
print my_record.format("gb")
The corresponding genbank file then looks like:
LOCUS . 17 bp DNA UNK 01-JAN-1980
DEFINITION .
ACCESSION <unknown id>
VERSION <unknown id>
KEYWORDS .
SOURCE .
ORGANISM .
.
FEATURES Location/Qualifiers
CDS 3..5
/foo="bar"
ORIGIN
1 atagggacuc atagata
//
How can I change this bit UNK 01-JAN-1980
?