text: user294: Is there any annotation file providing correspondence between Nextclade and Pangolin variant nomenclature/annotations, to annotate some SARS-CoV-2 genomes from Gisaid with both these?
  For the moment I could only find:
  
  Nextclade's clade definitions
  Pangolin's lineage designations
  
  What I'm looking for is an annotation as follows:
  lineage    clade
  AY.43      21J 
  AY.4       21J
  ...        ...
  
  The idea is to generate a table as follows:
  genome                                 lineage    clade
  hCoV-19/Germany/BW-RKI-I-195742/2021   AY.43      21J
  ...                                    ...        ...
  
  The way I proceed now is the following:
  
  Parse the Pangolin's lineage designation file to find a target genome
  Look for the target genome in Gisaid (for quality check)
  Parse the metadata associated to the selected genome to get the lineage for verification (only Pangolin lineage is reported)
  
  These steps allow me to build the first part of the table:
  genome                                 lineage    
  hCoV-19/Germany/BW-RKI-I-195742/2021   AY.43      
  ...                                    ...  
  
  Then:
  
  Paste the genome to Nextclade, wait for the analysis to be completed
  Report the calculated clade
  
  With this information, I can then build the table:
  genome                                 lineage    clade
  hCoV-19/Germany/BW-RKI-I-195742/2021   AY.43      21J
  ...                                    ...        ...
  
  The idea behind this is that both lineages and clades can be used for "tagging" a genome, depending on the aim (a given clade e.g. 21J includes many lineages e.g. AY.43 and AY.4 in the example above) and that I don't enjoy manual and error-prone procedures;) Thanks for your input.
  
  The GISAID nomenclature via Nextstrain and overall tree is presented here
  (Crossposted on Nextstrain's discord forum)
  
  user294: A comment from a Nextclade's user satisfies my actual needs, I will post it here for future reference:
  
  Hi - one possible source is the metadata file for UCSC’s daily-updated tree of public SARS-CoV-2 sequences:
  
  https://hgdownload.soe.ucsc.edu/goldenPath/wuhCor1/UShER_SARS-CoV-2/public-latest.metadata.tsv.gz
  
  
  It’s a big file – almost 3 million lines – because there are about 3M sequences in GenBank & COG-UK at this point and that number will probably grow. The last two columns of the file (10th & 11th) are the Nextstrain clade and Pango lineage assigned to each sequence based on its placement in the UCSC/UShER tree and the tree’s annotation of where each clade/lineage starts.
  
  
  This command will make a file relating each Nextstrain clade to at least one lineage (often to a lot of lineages, especially for Delta):
  
  gunzip -c public-latest.metadata.tsv.gz | cut -f 10,11 | sort -u > cladeToLineages.tsv
  
  
  Some Pango lineages have no public sequences (only GISAID sequences, which can’t be shared at a public URL), so those lineages will be missing from that file. Some older lineages are not monophyletic on the UCSC/UShER tree, so those lineages are not annotated and will be missing. (In total, ~200 / ~1500 are missing.)
  
  
original_text: 294: <p>Is there any annotation file providing correspondence between <a href="https://clades.nextstrain.org/" rel="nofollow noreferrer">Nextclade</a> and <a href="https://cov-lineages.org/resources/pangolin.html" rel="nofollow noreferrer">Pangolin</a> variant nomenclature/annotations, to annotate some SARS-CoV-2 genomes from <a href="https://www.epicov.org" rel="nofollow noreferrer">Gisaid</a> with both these?</p>
  <p>For the moment I could only find:</p>
  <ul>
  <li><a href="https://github.com/nextstrain/ncov/blob/master/defaults/clades.tsv" rel="nofollow noreferrer">Nextclade's clade definitions</a></li>
  <li><a href="https://raw.githubusercontent.com/cov-lineages/pango-designation/master/lineages.csv" rel="nofollow noreferrer">Pangolin's lineage designations</a></li>
  </ul>
  <p>What I'm looking for is an annotation as follows:</p>
  <pre><code>lineage    clade
  AY.43      21J 
  AY.4       21J
  ...        ...
  </code></pre>
  <p>The idea is to generate a table as follows:</p>
  <pre><code>genome                                 lineage    clade
  hCoV-19/Germany/BW-RKI-I-195742/2021   AY.43      21J
  ...                                    ...        ...
  </code></pre>
  <p>The way I proceed now is the following:</p>
  <ul>
  <li>Parse the Pangolin's lineage designation file to find a target genome</li>
  <li>Look for the target genome in Gisaid (for quality check)</li>
  <li>Parse the metadata associated to the selected genome to get the lineage for verification (only Pangolin lineage is reported)</li>
  </ul>
  <p>These steps allow me to build the first part of the table:</p>
  <pre><code>genome                                 lineage    
  hCoV-19/Germany/BW-RKI-I-195742/2021   AY.43      
  ...                                    ...  
  </code></pre>
  <p>Then:</p>
  <ul>
  <li>Paste the genome to Nextclade, wait for the analysis to be completed</li>
  <li>Report the calculated clade</li>
  </ul>
  <p>With this information, I can then build the table:</p>
  <pre><code>genome                                 lineage    clade
  hCoV-19/Germany/BW-RKI-I-195742/2021   AY.43      21J
  ...                                    ...        ...
  </code></pre>
  <p>The idea behind this is that both lineages and clades can be used for &quot;tagging&quot; a genome, depending on the aim (a given clade e.g. 21J includes many lineages e.g. AY.43 and AY.4 in the example above) and that I don't enjoy manual and error-prone procedures;) Thanks for your input.</p>
  <hr />
  <p>The GISAID nomenclature via Nextstrain and overall tree is presented <a href="https://www.gisaid.org/phylodynamics/global/nextstrain/" rel="nofollow noreferrer">here</a></p>
  <p>(Crossposted on <a href="https://discussion.nextstrain.org/t/correspondance-of-sars-cov-2-annotations-nextclade-pangolin/883" rel="nofollow noreferrer">Nextstrain's discord forum</a>)</p>
   294: <p>A comment from a Nextclade's user satisfies my actual needs, I will post it here for future reference:</p>
  <blockquote>
  <p>Hi - one possible source is the metadata file for UCSC’s daily-updated tree of public SARS-CoV-2 sequences:</p>
  </blockquote>
  <pre><code>https://hgdownload.soe.ucsc.edu/goldenPath/wuhCor1/UShER_SARS-CoV-2/public-latest.metadata.tsv.gz
  </code></pre>
  <blockquote>
  <p>It’s a big file – almost 3 million lines – because there are about 3M sequences in GenBank &amp; COG-UK at this point and that number will probably grow. The last two columns of the file (10th &amp; 11th) are the Nextstrain clade and Pango lineage assigned to each sequence based on its placement in the UCSC/UShER tree and the tree’s annotation of where each clade/lineage starts.</p>
  </blockquote>
  <blockquote>
  <p>This command will make a file relating each Nextstrain clade to at least one lineage (often to a lot of lineages, especially for Delta):</p>
  </blockquote>
  <pre><code>gunzip -c public-latest.metadata.tsv.gz | cut -f 10,11 | sort -u &gt; cladeToLineages.tsv
  </code></pre>
  <blockquote>
  <p>Some Pango lineages have no public sequences (only GISAID sequences, which can’t be shared at a public URL), so those lineages will be missing from that file. Some older lineages are not monophyletic on the UCSC/UShER tree, so those lineages are not annotated and will be missing. (In total, ~200 / ~1500 are missing.)</p>
  </blockquote>
  