Mus musculus incomplete
#3
by
Yanisadel
- opened
Hello,
In ncbi_eukaryotic_genomes/batch90.tar, the file GCF_000001635.27.fasta.gz (corresponding to Mus musculus) can be found.
However, the file only contains one sequence, with length 16_000bp.
It seems that the genome for Mus musculus is incomplete. Could you please let me know what you think of that ?
I send you below a bash script that downloads batch90, looks for this GCF_000001635.27 file, and counts the number of nucleotides.
The output of the script is 1 sequence, and ~16_000 nucleotides.
#!/bin/bash
# Download the archive (uncomment if needed)
wget https://huggingface.co/datasets/arcinstitute/opengenome2/resolve/main/fasta/ncbi_eukaryotic_genomes/batch90.tar
# Create a folder for extraction
mkdir -p batch90
# Extract into batch90/
tar -xf batch90.tar
# Find the GCF_000001635.27.fasta.gz file inside batch90/
FASTA_GZ=$(find batch90 -name "GCF_000001635.27.fasta.gz")
# Decompress the file
gunzip "$FASTA_GZ"
# Get the FASTA filename after decompression
FASTA=${FASTA_GZ%.gz}
# Count the number of sequences (lines starting with '>')
NSEQ=$(grep -c "^>" "$FASTA")
# Compute the total number of nucleotides (lines NOT starting with '>', no line breaks)
NTOTAL=$(grep -v "^>" "$FASTA" | tr -d '\n' | wc -c)
echo "Number of sequences: $NSEQ"
echo "Total number of nucleotides: $NTOTAL"