Building a COI database from BOLD references

3 off-topic replies have been merged into an existing topic: 12s database using rescript - australian taxa only?

Please keep replies on-topic in the future.

An off-topic reply has been split into a new topic: Merge CO1 artifacts

Please keep replies on-topic in the future.

An off-topic reply has been split into a new topic: Error following COI database tutorial

Please keep replies on-topic in the future.

I ran into the same issue and fixed it by following these commands:

  1. check the maximum allowed size of arguments: getconf ARG_MAX
  2. check myval length: echo ${#myval}
  3. write the contents of $myval into a separate .sed file. echo "$myval" > commands.sed
  4. Then, use sed with the -f (file) option: sed -f commands.sed bold_allrawSeqs.fasta > cleaned_bold_allrawSeqs.fasta

This last line takes a few minutes to run (~ 10 min)

1 Like