Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

This is a simple, under development raw Repeat Masker output file parser. The idea is to help parse, search and filter the file, making easy tasks like selecting groups of repeat events and classes. Another feature is to retrieve events in a given genomic coordinate interval.

License

andreirozanski/bio-repeatmasker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

bio-repeatmasker

This is a simple, under development raw Repeat Masker output file parser. The idea is to help parse, search and filter the file, making easy tasks like selecting groups of repeat events and classes. Another feature is to retrieve events in a given genomic coordinate interval. It was developed using hgdownload.soe.ucsc.edu/goldenPath/hg19/bigZips/chromOut.tar.gz file.

Installation

‘gem install bio-repeatmasker’

Usage

  • Open -your_file-:

file=RptMskr::Parser.open("-your_file-")
  • Search -your_file- by_id: (Array of IDs)

IDs=RptMskr::Parser.search_by_id(["2","38"])
  • Search -your_file- by_field:

fields=RptMskr::Parser.search_by_field("subs_percent",["35.2"])

Based on www.repeatmasker.org/webrepeatmaskerhelp.html - fields available are: id, repeat_name, class_name, chromosome, start_coordinate, end_coordinate, strand, n_beyond_match, start_match, end_match, n_prior_match, sw_score, subs_percent, del_percent, ins_percent.

  • Search -your_file- by_coordinate_interval:

coord_interval=RptMskr::Parser.search_by_coordinate_interval("chr1","73845","76697")

Contributing to bio-repeatmasker

  • Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet.

  • Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it.

  • Fork the project.

  • Start a feature/bugfix branch.

  • Commit and push until you are happy with your contribution.

  • Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright © 2014 Andrei Rozanski. See LICENSE.txt for further details.

About

This is a simple, under development raw Repeat Masker output file parser. The idea is to help parse, search and filter the file, making easy tasks like selecting groups of repeat events and classes. Another feature is to retrieve events in a given genomic coordinate interval.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages