---
name: "Bio::DB::EUtilities::ElinkData"
section: "3pm"
platform: "linux"
package: "bioperl"
version: "1.5.2.102-3"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Bio::DB::EUtilities::ElinkData"
---

# Bio::DB::EUtilities::ElinkData(3pm)

Bio::DB::EUtilities::ElinkData  \*\*\* Give standard usage here \*\*\* Describe the object here\
 **Mailing Lists** User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists. Your participation is much appreciated.

```
  bioperl-l@lists.open-bio.org               - General discussion
  http://www.bioperl.org/wiki/Mailing_lists  - About the mailing lists
```

**Reporting Bugs** Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web.

```
  http://bugzilla.open-bio.org/
```

Email cjfields at uiuc dot edu The rest of the documentation details each of the object methods. Internal methods are usually preceded with a \_\
 **elink\_dbfrom**

```
 Title   : elink_dbfrom
 Usage   : $dbfrom = $linkset->elink_dbfrom;
 Function: gets/sets dbfrom value
 Returns : originating database
 Args    : originating database
```

**elink\_queryids**

```
 Title   : elink_queryids
 Usage   : @ids = $linkset->elink_queryids;
 Function: gets/sets original query ID values (ref to array)
 Returns : array or array ref of IDs (based on wantarray)
 Args    : array ref of IDs
```

**elink\_command**

```
 Title   : elink_command
 Usage   : $cmd = $linkset->elink_command;
 Function: gets/sets cmd used for elink query
 Returns : string (cmd parameter)
 Args    : string (cmd parameter)
```

**get\_LinkIds\_by\_db**

```
 Title   : get_LinkIds_by_db
 Usage   : @ids = $linkset->get_LinkIds_by_db('protein');
 Function: retrieves primary ID list based on the database for the object
 Returns : array or array ref of IDs (based on wantarray)
 Args    : None
```

**next\_linkdb**

```
 Title   : next_linkdb
 Usage   : while (my $db = $linkset->next_linkdb) {
 Function: iterates through list of database names in internal queue
 Returns : String (name of database)
 Args    : None
```

**get\_all\_linkdbs**

```
 Title   : get_all_linkdbs
 Usage   : @dbs = $linkset->get_all_linkdbs;
 Function: returns all database names which contain IDs
 Returns : array or array ref of databases (based on wantarray)
 Args    : None
```

**next\_scoredb**

```
 Title   : next_scoredb
 Usage   : while (my $db = $linkset->next_scoredb) {
 Function: iterates through list of database with score values
 Returns : String (name of database)
 Args    : None
```

**get\_all\_scoredbs**

```
 Title   : get_all_scoredbs
 Usage   : @dbs = $linkset->get_all_scoredbs;
 Function: returns database names which contain scores
 Returns : array or array ref of databases (based on wantarray)
 Args    : None
```

**get\_score**

```
 Title   : get_score
 Usage   : $score = $linkset->get_score($id);
 Function: returns score value for ID
 Returns : score value
 Args    : ID
 Note    : if multiple databases are returned with scores (rare but possible),
         : you must set the default score database using set_scoredb.  If you
         : use next_scoredb to iterate through the databases, this is done for you
```

**get\_score\_hash**

```
 Title   : get_score_hash
 Usage   : %scores = $linkset->get_score_hash($database);
 Function: returns ID(key)-score(value) hash based on database name
 Returns : score value
 Args    : OPTIONAL : database name.  If there is only one score hash, returns
         : that hash, otherwise throws an exception
```

**set\_scoredb**

```
 Title   : set_scoredb
 Usage   : $linkset->set_scoredb('protein');
 Function: sets the database to retrieve scores from
 Returns : None
 Args    : database name
```

**rewind\_linkdbs**

```
 Title   : rewind_linkdbs
 Usage   : $linkset->rewind_linkdbs;
 Function: resets the iterator for next_database
 Returns : None
 Args    : None
```

**rewind\_scoredbs**

```
 Title   : rewind_scoredbs
 Usage   : $linkset->rewind_scoredbs;
 Function: resets the iterator, current database for next_scoredb
 Returns : None
 Args    : None
```
