Convert a UCSC twoBit sequence file to EMBL.

Maximum file size: 50 MB. The file is checked before conversion.

UCSC twoBit → EMBL

  • This input format always holds DNA, so the output records are labeled as DNA.
  • The output writes every sequence letter in the same case, so lowercase (soft-masked) regions are no longer marked.

About this conversion

The converter reads records in the input format and writes them in the output format. Data that the output format cannot store may be lost. The notes under the Convert file button list the important limits for this pair.

Run it with Biopython

For batch work, you can use Biopython's SeqIO.convert function. This input format always holds DNA but does not record it, so the molecule type is set explicitly.

from Bio import SeqIO

count = SeqIO.convert("input.twobit", "twobit",
                      "output.embl", "embl",
                      molecule_type="DNA")
print("Converted %i records" % count)

Sample input file: UCSC twoBit

UCSC twoBit is a binary format, so it cannot be shown as text. Download the sample file to try the converter.

Download sample (sample.2bit, 770 bytes)

Samples are small illustrative files. Some come from the Biopython test suite (see the project's sample notes); they are not real study data.

Choose another conversion