# Original formating of BOLD data

**URL:** https://forum.qiime2.org/t/original-formating-of-bold-data/32798
**Category:** User Support
**Tags:** taxonomy, co1
**Created:** [March 19, 2025, 4:54pm UTC](https://forum.qiime2.org/t/original-formating-of-bold-data/32798 "2025-03-19T16:54:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![klunn](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/k/f6c823/32.png) [@klunn](https://forum.qiime2.org/u/klunn)
#### Post date: [March 19, 2025, 4:54pm UTC](https://forum.qiime2.org/t/original-formating-of-bold-data/32798/1 "2025-03-19T16:54:24Z")

</div>

Hi, what format is your originally downloaded database in? Because when I run the script:

cat \*.seqNtaxa.csv |   
grep -v 'sequenceID,taxon,nucleotides' |   
awk -F ',' '{OFS="\t"};{print $1";tax="$2, $3}' |   
sed 's/^/\>/g' |   
tr '\t' '\n' \> bold\_allrawSeqs.fasta

The output looks like this:

 ![image](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/c/f/cfeaa3a40627a0c98bfb1d9348447e658b341d67.png)

Which I don't think is the information that this is trying to generate... I couldn't use the R script to download the database, so I used the BOLD interface which worked fine but I don't know what information this pipeline needs so that I can continue.

Any advice would be helpful!

Thanks,  
Kat

---

<div class="post-metadata">

### Author: ![devonorourke](https://forum.qiime2.org/user_avatar/forum.qiime2.org/devonorourke/32/3110_2.png) [@devonorourke](https://forum.qiime2.org/u/devonorourke)
#### Post date: [March 21, 2025, 7:47pm UTC](https://forum.qiime2.org/t/original-formating-of-bold-data/32798/2 "2025-03-21T19:47:42Z")

</div>

Hi @klunn,  
I believe the input file (seqNtaxa.csv) contains metadata and sequence data in a comma-separated data structure. The script you've highlighted in this question is attempting to convert that original format into a and are converting it into a file that is used typically to host sequence information (.fasta). We'd expect a .fasta to have lines beginning with `>` to hold metadata information, and lines without that to include sequence information:

```auto
>metadata_information_1
ATATCGCG
>metadata_information_2
CCAATTGG

```

The output file you are showing is following the a .fasta format, but the text that has been processed and converted from .csv --\> .fasta looks wrong. Where you have lines like `L#08BANFF-001` would be where we expect sequence information to be. Instead, it looks like you have metadata where sequence data should be found.  
Without providing access to your specific file, my suggestion would be to look into the .csv directly using something like Microsoft Excel. Then find out what columns contain the information for the sequence ID, the taxonomic information, and the nucleotide sequences. If you do not see those data, the the problem is not with the script itself, but the input file.  
Hope that helps

---

<div class="post-metadata">

### Author: ![klunn](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/k/f6c823/32.png) [@klunn](https://forum.qiime2.org/u/klunn)
#### Post date: [March 25, 2025, 2:45pm UTC](https://forum.qiime2.org/t/original-formating-of-bold-data/32798/3 "2025-03-25T14:45:36Z")

</div>

Hi @devonorourke , yes this was very helpful! Thank you 🙂

---

<div class="post-metadata">

### Author: ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)
#### Post date: [April 25, 2025, 8:46pm UTC](https://forum.qiime2.org/t/original-formating-of-bold-data/32798/4 "2025-04-25T20:46:01Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
