Learn R Programming

iRefR (version 1.13)

select_interaction_type: Select Binary||Polymer||Complex in iRefIndex

Description

Select the subset of records in iRefIndex belonging to a certain interaction type (binary, polymer, complex).

Usage

select_interaction_type(int_type, MITAB_table)

Arguments

int_type
Interaction type ("binary", "complex" or "polymer").
MITAB_table
iRefIndex/MITAB R table.

Value

output
R Table containing the requested subset of iRefIndex.

Examples

Run this code
     ## get tables
     irefindex_curr_ecoli = get_irefindex("562", "13.0", tempdir())

     ## execute function
     iRef_binary = select_interaction_type("binary", irefindex_curr_ecoli)
     iRef_complex = select_interaction_type("complex", irefindex_curr_ecoli)
     iRef_polymer = select_interaction_type("polymer", irefindex_curr_ecoli)
     
     ## get results
     #pie_int_type = pie(c(dim(iRef_binary)[1], dim(iRef_polymer)[1], dim(
     #iRef_complex)[1]), labels=c("Binaries","Polymers","Complexes"), main=
     #"iRefIndex Records per Interaction Type")
     #edit(iRef_complex[1:10,])
     

Run the code above in your browser using DataLab