Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add submission date to the INRB sequences #243

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

j23414
Copy link
Contributor

@j23414 j23414 commented Apr 30, 2024

Description of proposed changes

This is an fixup and update of PR #242

Add submission date to the INRB sequences as 2024-04-12 (preprint date), so that they show up properly in the "submission_recency" coloring, etc.

add_ids.pl
#! /usr/bin/env perl

use strict;
use warnings;

my @TMPIDS=();

for my $i ("TMP0000" .. "TMP0099") {
    push @TMPIDS, $i;
}

my $i=0;
while(<>){
  if(/>(.*)/){
    my $header=$1;
    print ">$TMPIDS[$i++]";
    print "|2024-04-12";  # <= New
    print "|INRB";
    print "|Africa";
    print "|Democratic Republic of the Congo";
    print "|$header\n";
  }else{
    print;
  }
}
view commands
perl add_ids.pl ingest/submission01_mpox47_2024.fasta > fixedheaders.fasta
./ingest/bin/fasta-to-ndjson \
 --fasta fixedheaders.fasta \
 --fields genbank_accession submitted authors region country strain host ocountry division collected \
 --exclude ocountry \
 > ingest/data/inrb.ndjson

I ran a check of nextstrain build ingest to make sure the rule "curate" completed successfully before submitting the PR.

Related issue(s)

Checklist

  • Checks pass

Add submission date to the INRB sequences as 2024-04-12 (preprint date),
so that they show up properly in the "submission_recency" coloring, etc.
@j23414 j23414 requested a review from a team April 30, 2024 16:52
@j23414
Copy link
Contributor Author

j23414 commented Apr 30, 2024

Tried submitting a test run at: https://github.com/nextstrain/mpox/actions/runs/8898724896

@j23414 j23414 requested review from corneliusroemer and trvrb April 30, 2024 17:10
Copy link
Member

@corneliusroemer corneliusroemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent! I trust your testing, will merge and review - I'm working on mpox anyways so will test there in any case.

@corneliusroemer corneliusroemer merged commit c7adcb9 into master Apr 30, 2024
21 checks passed
@corneliusroemer corneliusroemer deleted the add-submit-date branch April 30, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants