Skip to content

R CGH X: Aroma IV

Bioinformatics Core Facility Gothenburg edited this page Oct 2, 2017 · 3 revisions

Export Segmentation results

  • After performing the segmentation, you can export the segmentation results to a file:
pathname <- writeRegions(sm, verbose=verbose)
  • The variable pathname now contains the path to the file where the results are stored.
  • You can open the file in excel or in a text editor, but we will also look at the results in R:
library("R.filesets")
db <- TabularTextFile(pathname)
df <- readDataFrame(db)
  1. Use the function table to find out which sample has the most segments.

The last thing to do is to find out exactly where the break on chromosome 3 is for sample GSM374564. For this we will do some filtering using the r package dplyr. Install it if it is not already installed.

  • First take a look at the first rows of df to get an idea of what it contains.
  • use the function filter to extract all segments on chromosome 3
df.chr3 <- filter(df, chromosome==3)
  • Then use the filter function again to extract only segments from sample GSM374564. Fill in the blank below to do the correct filtering.
df.chr3.64 <- filter(df.chr3,     )
  1. Where is the break?

Clone this wiki locally