Skip to content

Commit

Permalink
Merge pull request #1301 from tripal/1300-tv3-fasta-loader-infraspecific
Browse files Browse the repository at this point in the history
Issue 1300 FASTA importer organism selector infraspecific nomenclature
  • Loading branch information
spficklin committed Sep 26, 2022
2 parents 2de02c0 + 8a90e37 commit 48e2aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions tripal_chado/includes/TripalImporter/FASTAImporter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ class FASTAImporter extends TripalImporter {
public function form($form, &$form_state) {

// get the list of organisms
$sql = "SELECT * FROM {organism} ORDER BY genus, species";
$org_rset = chado_query($sql);
$organisms = [];
$organisms[''] = '';
while ($organism = $org_rset->fetchObject()) {
$organisms[$organism->organism_id] = "$organism->genus $organism->species ($organism->common_name)";
}
$organisms = chado_get_organism_select_options(FALSE);
$form['organism_id'] = [
'#title' => t('Organism'),
'#type' => t('select'),
Expand Down
9 changes: 1 addition & 8 deletions tripal_chado/includes/TripalImporter/GFF3Importer.inc
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,7 @@ class GFF3Importer extends TripalImporter {
public function form($form, &$form_state) {

// get the list of organisms
$sql = "SELECT * FROM {organism} ORDER BY genus, species";
$org_rset = chado_query($sql);
$organisms = [];
$organisms[''] = '';
while ($organism = $org_rset->fetchObject()) {
$organisms[$organism->organism_id] = "$organism->genus $organism->species ($organism->common_name)";
}

$organisms = chado_get_organism_select_options(FALSE);
$form['organism_id'] = [
'#title' => t('Existing Organism'),
'#type' => 'select',
Expand Down

0 comments on commit 48e2aff

Please sign in to comment.