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 a script to download accessions given seedlot names. #4824

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

lukasmueller
Copy link
Member

Description

Checklist

  • Refactoring only
  • Documentation only
  • Fixture update only
  • Bug fix
    • The relevant issue has been closed.
    • Further work is required.
  • New feature
    • Relevant tests have been created and run.
    • Data was added to the fixture
      • Data was added via a patch in /t/data/fixture/patches/.
    • User-Facing Change
      • The user manual in /docs has been updated.
    • Any new Perl has been documented using perldoc.
    • Any new JavaScript has been documented using JSDoc.
    • Any new legacy JavaScript has been moved from /js to /js/source/legacy.


my $seedlot = CXGN::Stock::Seedlot->new( schema => $schema, seedlot_id => $seedlot_row->stock_id() );

my $accession = $seedlot->accession();
Copy link
Contributor

@titima15 titima15 Feb 21, 2024

Choose a reason for hiding this comment

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

To make this script applicable to other databases, it might be good to check if the content is accession or cross by including $cross = $seedlot->cross();
Then indicate stock_type in the third column (seedlot name, content name, stock_type)


# }
# $accession_name = join (", ", @accessions);

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you still want to keep those commented out lines?

@Sri-2023 Sri-2023 merged commit ca60cbe into master Mar 7, 2024
1 check passed
@Sri-2023 Sri-2023 deleted the topic/add_accession_seedlot_script branch March 7, 2024 16:18
@lukasmueller lukasmueller restored the topic/add_accession_seedlot_script branch March 21, 2024 20:11
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.

4 participants