core_annotated        package:genomeIntervals        R Documentation

_G_e_n_o_m_e _i_n_t_e_r_v_a_l_s _w_i_t_h _m_i_n_i_m_a_l _a_n_n_o_t_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     returns a copy of the input (stranded) genome intervals object
     with annotations restricted to the minimally required ones.

_U_s_a_g_e:

     core_annotated(x)

_A_r_g_u_m_e_n_t_s:

       x: A 'Genome_intervals' or 'Genome_intervals_stranded' object. 

_V_a_l_u_e:

     A copy of 'x' with the 'annotation' slot restricted to 'seq_name',
     'inter_base' and 'strand' (the latter only if 'x' is a
     'Genome_intervals_stranded' object).

_E_x_a_m_p_l_e_s:

     # load toy examples
     data("gen_ints")

     # add some non-core annotations to i
     annotation(i)$comment = "some non-core annotation"

     # i with all annotations
     i

     # core annotations only
     core_annotated(i)

     ## Not run: 
     # with different annotation columns, i and j cannot be combined
     c( i, j )
     ## End(Not run)

     # core annotated versions can
     c( core_annotated(i), core_annotated(j) )

