Difference between revisions of "ENA Submission Pipeline"
GabiDroege (talk | contribs) (→Final submission) |
GabiDroege (talk | contribs) (→Most common software errors) |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Attention: BGBM submissions to ENA including registration of new names should only be done by authorised staff! Please contact the DNA Bank if you want to submit sequences SIX weeks ahead of paper submission!''' | '''Attention: BGBM submissions to ENA including registration of new names should only be done by authorised staff! Please contact the DNA Bank if you want to submit sequences SIX weeks ahead of paper submission!''' | ||
The following guide shall help you to prepare all required data and to understand the complexity of sequence submissions. The submission itself will be done by authorised staff only! | The following guide shall help you to prepare all required data and to understand the complexity of sequence submissions. The submission itself will be done by authorised staff only! | ||
− | |||
− | |||
Line 15: | Line 13: | ||
==Check all taxon names against NCBI Taxonomy== | ==Check all taxon names against NCBI Taxonomy== | ||
− | + | Use the NCBI tool: https://www.ncbi.nlm.nih.gov/Taxonomy/TaxIdentifier/tax_identifier.cgi | |
− | |||
− | |||
* Names muss follow IPNI standard (except for unidenified organisms and new described taxa), most common mistakes are blanks in authorship (e.g. H. Karst); IPNI always without blanks (H.Karst); BGBM follows this standard in all its collection databases | * Names muss follow IPNI standard (except for unidenified organisms and new described taxa), most common mistakes are blanks in authorship (e.g. H. Karst); IPNI always without blanks (H.Karst); BGBM follows this standard in all its collection databases | ||
* Names not found at ENA/NCBI Taxonomy must be registered at ENA (by BGBM DNA Bank!). Note, that you will only find names associated to <u>published</u> sequences! | * Names not found at ENA/NCBI Taxonomy must be registered at ENA (by BGBM DNA Bank!). Note, that you will only find names associated to <u>published</u> sequences! | ||
* ENA has rules in place for registration of new names one must follow. BGBM documents those name submissions centrally, to enable updating sequence records after publication of new names. | * ENA has rules in place for registration of new names one must follow. BGBM documents those name submissions centrally, to enable updating sequence records after publication of new names. | ||
− | ** Unidentified or unpublished names must be unique, e.g. "Minuartia sp. | + | ** Unidentified or unpublished names must be unique, e.g. "Minuartia sp. DB 12843" instead of "Minuartia spec. 1" |
− | '''Attention: the registration of new names might require up to | + | '''Attention: the registration of new names might require up to six weeks, make sure ALL names are checked carefully and submitted right in time''' |
==Add Annotations to Sequences== | ==Add Annotations to Sequences== | ||
* Required Software: Phyde, Geneious, every common text editor (e.g. Geany, Notepad++, Textpad) | * Required Software: Phyde, Geneious, every common text editor (e.g. Geany, Notepad++, Textpad) | ||
* Video Tutorial: https://www.youtube.com/watch?v=CY1e2RkULas | * Video Tutorial: https://www.youtube.com/watch?v=CY1e2RkULas | ||
− | * '''Attention: ENA requires use of certain vocabulary for annotations see Annotations''' | + | * '''Attention: ENA requires use of certain vocabulary for annotations see [[Internal:ENA Annotations | ENA Annotations]]''' |
Export your file into Nexus format! | Export your file into Nexus format! | ||
Line 49: | Line 45: | ||
## todo: Beispiel-Anfragen hinzufügen | ## todo: Beispiel-Anfragen hinzufügen | ||
− | + | ===Mandatory conventions for non-canonical names=== | |
* Sensu stricto names are treated as canonical, e.g.: Arabis hirsuta s. str. = Arabis hirsuta | * Sensu stricto names are treated as canonical, e.g.: Arabis hirsuta s. str. = Arabis hirsuta | ||
* Sensu lato names are treated as cf., e.g.: Festuca ovina s. l. = Festuca cf. ovina | * Sensu lato names are treated as cf., e.g.: Festuca ovina s. l. = Festuca cf. ovina | ||
− | * Cf. (and aff.) names we treat as non-unique, to which a unique string is attached, e.g.: Festuca cf. ovina | + | * Cf. (and aff.) names we treat as non-unique, to which a unique string is attached, e.g.: Festuca cf. ovina DB 12342 |
* Hybrid formulas repeat the genus, i.e.: Carex cespitosa x Carex nigra | * Hybrid formulas repeat the genus, i.e.: Carex cespitosa x Carex nigra | ||
− | * | + | * use an ‘x’ rather than a multiplication sign in hybrid names because not all applications can handle non-ASCII characters |
==Create project at ENA to get project number== | ==Create project at ENA to get project number== | ||
Line 60: | Line 56: | ||
# Click on "Register study (project)" --> Next | # Click on "Register study (project)" --> Next | ||
# Fill out relevant information (Short name, Title of study, Abstract, Release date) | # Fill out relevant information (Short name, Title of study, Abstract, Release date) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Converting DNA alignment (nexus file) to EMBL flate file, integration of metadata== | ==Converting DNA alignment (nexus file) to EMBL flate file, integration of metadata== | ||
Line 78: | Line 68: | ||
* Column headers must match with [http://www.insdc.org/files/feature_table.html INSDC feature table] | * Column headers must match with [http://www.insdc.org/files/feature_table.html INSDC feature table] | ||
* for '''matK''' use '''organelle = plastid'''; for others column "organelle" is not needed | * for '''matK''' use '''organelle = plastid'''; for others column "organelle" is not needed | ||
+ | |||
+ | |||
+ | ===Most common software errors=== | ||
+ | {|class="wikitable" | ||
+ | !Error | ||
+ | !Solution | ||
+ | |- | ||
+ | |annonex2embl ERROR: expected string or bytes-like object | ||
+ | |csv parsing error in metadata file, typically " in strings, Umlaute, ó, é, á, í etc., replace all of them by "regular" characters | ||
+ | |- | ||
+ | |annonex2embl ERROR with qualifiers of `SAL169`: list index out of range | ||
+ | |sample metadata missing, add data to metadata.csv | ||
+ | |- | ||
+ | | annonex2embl ERROR: Not enough taxa in matrix. | ||
+ | | DIMENSIONS NTAX= doesn't match number of sequences in nexus file, update number in nexus file | ||
+ | |- | ||
+ | | annonex2embl ERROR: csv-file does not contain a column labelled isolate. | ||
+ | | You have probably forgotten, that ";" is NOT supported as delimiter; see above how to export a csv with "," as delimiter | ||
+ | |- | ||
+ | | ValueError: End location (1410) must be greater than or equal to start location (1417) | ||
+ | | CharSet error in Nexus fils, e.g. 1874-2222; 2222-2335; instead of 1874-2221; 2222-2335; | ||
+ | |} | ||
<pre> | <pre> | ||
Line 105: | Line 117: | ||
* rpl16: "rpl16 intron, partial sequence" | * rpl16: "rpl16 intron, partial sequence" | ||
* 18S: "partial 18S rRNA gene" | * 18S: "partial 18S rRNA gene" | ||
+ | * rbcL: "partial rbcL gene" | ||
+ | * petD: "petB gene, partial sequence; petD gene and intron, partial sequence" | ||
===Check EMBL File before you continue=== | ===Check EMBL File before you continue=== | ||
Line 119: | Line 133: | ||
==Validating EMBL flatfile== | ==Validating EMBL flatfile== | ||
* Required Software: https://github.com/enasequence/webin-cli/releases -> download latest jar file | * Required Software: https://github.com/enasequence/webin-cli/releases -> download latest jar file | ||
− | * '''Mandatory: Manifest file''', file ending ".manifest", example file can be found at https:// | + | * '''Mandatory: Manifest file''', file ending ".manifest", example file can be found at https://kb.bgbm.org/share/s/zWNjSrM1RyW1DNyNb5c15Q |
+ | * '''Mandatora: create output folder''', otherwise the software will tell you it can't write to output folder | ||
* The EMBL Validator will provide you with a report | * The EMBL Validator will provide you with a report | ||
− | * Most common errors: wrong syntax for coordinates, unregistered names | + | * Most common errors: wrong syntax for coordinates, unregistered names, typos in isolate/first part of nexus sequence rows (e.g. annonex2embl ERROR with qualifiers of `AmCoc01`: list index out of range means AmCoc01 found in Nexus file could not be found in metadata file) |
+ | |||
<pre> | <pre> | ||
Line 154: | Line 170: | ||
INFO : The submission has been completed successfully. The following analysis accession was assigned to the submission: ERZ1740481 | INFO : The submission has been completed successfully. The following analysis accession was assigned to the submission: ERZ1740481 | ||
+ | |||
+ | '''You will NOT receive a confirmation email, but they will be listed in the Webin user interface.''' |
Latest revision as of 13:48, 23 July 2021
Attention: BGBM submissions to ENA including registration of new names should only be done by authorised staff! Please contact the DNA Bank if you want to submit sequences SIX weeks ahead of paper submission! The following guide shall help you to prepare all required data and to understand the complexity of sequence submissions. The submission itself will be done by authorised staff only!
Contents
1 Researchers
1.1 INPUT required for any submission
- DNA alignment in NEXUS format with annotations following the INSDC vocabulary
- most common errors: coordinates syntax, usage of Umlaute or charcters such as °
- Sample metadata in CSV format following the BGBM standard (TODO: description of this standard)
- List of standardized scientific names
- Project metadata (short name, title of study, abstract, release date, autors/contributors)
1.2 Check all taxon names against NCBI Taxonomy
Use the NCBI tool: https://www.ncbi.nlm.nih.gov/Taxonomy/TaxIdentifier/tax_identifier.cgi
- Names muss follow IPNI standard (except for unidenified organisms and new described taxa), most common mistakes are blanks in authorship (e.g. H. Karst); IPNI always without blanks (H.Karst); BGBM follows this standard in all its collection databases
- Names not found at ENA/NCBI Taxonomy must be registered at ENA (by BGBM DNA Bank!). Note, that you will only find names associated to published sequences!
- ENA has rules in place for registration of new names one must follow. BGBM documents those name submissions centrally, to enable updating sequence records after publication of new names.
- Unidentified or unpublished names must be unique, e.g. "Minuartia sp. DB 12843" instead of "Minuartia spec. 1"
Attention: the registration of new names might require up to six weeks, make sure ALL names are checked carefully and submitted right in time
1.3 Add Annotations to Sequences
- Required Software: Phyde, Geneious, every common text editor (e.g. Geany, Notepad++, Textpad)
- Video Tutorial: https://www.youtube.com/watch?v=CY1e2RkULas
- Attention: ENA requires use of certain vocabulary for annotations see ENA Annotations
Export your file into Nexus format! In the nexus file annotations show up at the end of the file in following format. Annotations must not contain spaces!
BEGIN SETS; charset 18S_rRNA = 1-378; charset 18S_gene = 1-378; END;
2 DNA Bank
2.1 Registration of all new names at NCBI/ENA
- Login at ENA's Webin
- Click on "Taxonomy Check/Request" --> Next
- Enter organism name / upload list of names
- Save list of names as txt file (one per row) or enter individually
- todo: Beispiel-Anfragen hinzufügen
2.1.1 Mandatory conventions for non-canonical names
- Sensu stricto names are treated as canonical, e.g.: Arabis hirsuta s. str. = Arabis hirsuta
- Sensu lato names are treated as cf., e.g.: Festuca ovina s. l. = Festuca cf. ovina
- Cf. (and aff.) names we treat as non-unique, to which a unique string is attached, e.g.: Festuca cf. ovina DB 12342
- Hybrid formulas repeat the genus, i.e.: Carex cespitosa x Carex nigra
- use an ‘x’ rather than a multiplication sign in hybrid names because not all applications can handle non-ASCII characters
2.2 Create project at ENA to get project number
- Login at ENA's Webin
- Click on "Register study (project)" --> Next
- Fill out relevant information (Short name, Title of study, Abstract, Release date)
2.3 Converting DNA alignment (nexus file) to EMBL flate file, integration of metadata
Required Software: https://github.com/michaelgruenstaeudl/annonex2embl
2.3.1 Metadata File
- MUST NOT contain any empty columns or rows
- Comma as only accepted delimiter (Windows -> change region to -> CSV export done with comma instead of semicolon)
- DATE must be converted into YYYY-MM-DD Attention: when you do the export in Windows dates will be converted into US format!
- Coordinates must follow this syntax: "47.94 N 28.12 W" (no commas, keep spaces!)
- MUST NOT contain any Umlaut or "strange" character such as °
- Column headers must match with INSDC feature table
- for matK use organelle = plastid; for others column "organelle" is not needed
2.3.2 Most common software errors
Error | Solution |
---|---|
annonex2embl ERROR: expected string or bytes-like object | csv parsing error in metadata file, typically " in strings, Umlaute, ó, é, á, í etc., replace all of them by "regular" characters |
annonex2embl ERROR with qualifiers of `SAL169`: list index out of range | sample metadata missing, add data to metadata.csv |
annonex2embl ERROR: Not enough taxa in matrix. | DIMENSIONS NTAX= doesn't match number of sequences in nexus file, update number in nexus file |
annonex2embl ERROR: csv-file does not contain a column labelled isolate. | You have probably forgotten, that ";" is NOT supported as delimiter; see above how to export a csv with "," as delimiter |
ValueError: End location (1410) must be greater than or equal to start location (1417) | CharSet error in Nexus fils, e.g. 1874-2222; 2222-2335; instead of 1874-2221; 2222-2335; |
##LINUX## INPUT=examples/DNA_Alignment.nex METAD=examples/Metadata.csv DESCR="description_of_alignment" // note, that spaces are unfortunately not yet supported! EMAIL=your_email_here@bgbm.org AUTHR="Your_name_here" // note, that spaces are unfortunately not yet supported! annonex2embl -n $INPUT -c $METAD -o ${INPUT%.nex*}.embl -d $DESCR -e $EMAIL -a $AUTHR ##WINDOWS## SET INPUT=examples/DNA_Alignment.nex SET METAD=examples/Metadata.csv SET DESCR="description_of_alignment" // note, that spaces are unfortunately not yet supported! SET EMAIL=your_email_here@bgbm.org SET AUTHR="Your_name_here" // note, that spaces are unfortunately not yet supported! annonex2embl -n %INPUT% -c %METAD% -o output.embl -d %DESCR% -e %EMAIL% -a %AUTHR%
Examples for DESCR: note, that spaces are unfortunately not yet supported! You'll need to replace underscores in the next step
- ITS: "18S rRNA gene (partial), ITS1, 5.8S rRNA gene, ITS2 and 28S rRNA gene (partial)"
- trnLF: "tRNA-Leu (trnL) gene, partial sequence; trnL-trnF intergenic spacer, complete sequence; and tRNA-Phe (trnF) gene"
- trnKmatK: "tRNA-Lys (trnK) gene and intron, partial sequence; maturase K (matK) gene, complete cds; psbA gene, partial sequence"
- rpl16: "rpl16 intron, partial sequence"
- 18S: "partial 18S rRNA gene"
- rbcL: "partial rbcL gene"
- petD: "petB gene, partial sequence; petD gene and intron, partial sequence"
2.3.3 Check EMBL File before you continue
- first row mol_type formatted correctly?
- WRONG: ID D257_023a; SV 1; linear; DNA; ; PLN; 378 BP.
- CORRECTED: ID D257_023a; SV 1; linear; genomic DNA; ; PLN; 378 BP.
- all dates in ISO format?
- Identifier doen't have to be changed
- "isolate DB" to be replaced by "isolate DB "
- "isolate=DB" to be replaced by "isolate=DB "
- 58S etc. to replaced by "5 8S" etc.
- replace underscores in descriptions by spaces
2.4 Validating EMBL flatfile
- Required Software: https://github.com/enasequence/webin-cli/releases -> download latest jar file
- Mandatory: Manifest file, file ending ".manifest", example file can be found at https://kb.bgbm.org/share/s/zWNjSrM1RyW1DNyNb5c15Q
- Mandatora: create output folder, otherwise the software will tell you it can't write to output folder
- The EMBL Validator will provide you with a report
- Most common errors: wrong syntax for coordinates, unregistered names, typos in isolate/first part of nexus sequence rows (e.g. annonex2embl ERROR with qualifiers of `AmCoc01`: list index out of range means AmCoc01 found in Nexus file could not be found in metadata file)
##LINUX and WINDOWS## java -jar ~/Downloads/webin-cli-3.5.0.jar -context sequence -userName TOPSECRET -password EVENMORESECRET -manifest ~/Desktop/ENA/YOUR_FOLDER/MANIFEST_FILE.manifest -outputDir ~/Desktop/ENA/YOUR_FOLDER/output -inputDir ~/Desktop/ENA/YOUR_FOLDER/ -validate
##Example Manifest file## STUDY PRJEB42197 // see above, you'll needd to register a study as a very first step NAME partial 18S rRNA gene // same as used in DESCR parameter before, but spaces are fine this time FLATFILE Cocconeis_crawfordii_18SV4.embl.gz // the zipped embl file name
2.5 Testing submission
If validation was successul you can test the submission (NEVER SKIP THIS STEP)
##LINUX and WINDOWS## java -jar ~/Downloads/webin-cli-3.5.0.jar -context sequence -userName TOPSECRET -password EVENMORESECRET -manifest ~/Desktop/ENA/YOUR_FOLDER/MANIFEST_FILE.manifest -outputDir ~/Desktop/ENA/YOUR_FOLDER/output -inputDir ~/Desktop/ENA/YOUR_FOLDER/ -test - submit
2.6 Final submission
If test submission was successul you can do the final the submission
##LINUX and WINDOWS## java -jar ~/Downloads/webin-cli-3.5.0.jar -context sequence -userName TOPSECRET -password EVENMORESECRET -manifest ~/Desktop/ENA/YOUR_FOLDER/MANIFEST_FILE.manifest -outputDir ~/Desktop/ENA/YOUR_FOLDER/output -inputDir ~/Desktop/ENA/YOUR_FOLDER/ - submit
Command line will provide you with a submission number, e.g.:
INFO : The submission has been completed successfully. The following analysis accession was assigned to the submission: ERZ1740481
You will NOT receive a confirmation email, but they will be listed in the Webin user interface.