tilingProbes          package:biocDatasets          R Documentation

_C_r_e_a_t_e _t_i_l_i_n_g _p_r_o_b_e_s _o_r _r_a_n_g_e_s

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

     Create tiling probes or ranges

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

     tilingProbes(width, step, template_seq)

     tilingIRanges(width, step, from, to)

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

    from: start position for the tiling

    step: increment in the starting index between one probe and the
          next. 

template_seq: template sequence from which tiling probes are to be
          extracted 

      to: end position for the tiling 

   width: width for the probes 

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

     'tilingProbes' and 'tilingIRanges' return a 'DNAStringSet' and a
     'IRanges' respectively.

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

     dna <- randomDNASequences(1, 30)[[1]]

     tip <- tilingProbes(10, 2, dna)

     # ASCII-art
     cat(as.character(dna), "\n")
     for (i in 1:length(tip)) {
       cat(paste(rep("|", (i-1)*2), collapse=""),
           as.character(tip[[i]]), "\n",
           sep="")
     }
     cat(as.character(dna), "\n")

