Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
94c4e284
Commit
94c4e284
authored
19 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Updated for new cisred file format in version 1.2
parent
88a9f701
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/regulatory_regions/RegulatoryFeatureParser/cisred.pm
+5
-6
5 additions, 6 deletions
...ipts/regulatory_regions/RegulatoryFeatureParser/cisred.pm
with
5 additions
and
6 deletions
misc-scripts/regulatory_regions/RegulatoryFeatureParser/cisred.pm
+
5
−
6
View file @
94c4e284
...
...
@@ -3,15 +3,14 @@ package RegulatoryFeatureParser::cisred;
use
strict
;
# Parse data from cisred database dump; download zip file from
# http://www.cisred.org/
files/Databases/cisREDdb-Hsap-1.1b/SQL/data.zip
# http://www.cisred.org/
content/data/about/human1.2e/folder_listing
# Only features.txt is parsed
#
# Format:
# <id> <batch_id> <seqname> <source> <feature> <start> <end> <score> <strand> <frame> <gene_id> <consensus>
#
# 1 1 7 cisRed con.omops.w10_1 75069868 75069877 0.0370026894185291 - . ENSG00000006606 rGGTTkGGGG
# 2 1 7 cisRed con.omops.w6_1 75069913 75069918 0.0124691222715891 - . ENSG00000006606 GCCTGG
# <id> <batch_id> <seqname> <source> <feature> <start> <end> <score> <mi_score> <strand> <frame> <gene_id> <consensus>
# 6 1 10 cisRed con.omops.w10_2_0 43087959 43087968 0.0320202924260256 8.21540322580645 - . ENSG00000198915 GGAGGsCTCs
#10 1 10 cisRed con.omops.w10_2_1 43083501 43083510 0.0079514357443787 11.7362903225806 - . ENSG00000198915 GGAGGCCTCC
use
RegulatoryFeatureParser::
BaseParser
;
use
Bio::EnsEMBL::DBSQL::
DBAdaptor
;
...
...
@@ -56,7 +55,7 @@ sub parse {
my
%feature
;
my
(
$id
,
$batch_id
,
$seqname
,
$source
,
$feature
,
$start
,
$end
,
$score
,
$strand
,
$frame
,
$gene_id
,
$consensus
)
=
split
;
my
(
$id
,
$batch_id
,
$seqname
,
$source
,
$feature
,
$start
,
$end
,
$score
,
$mi_score
,
$strand
,
$frame
,
$gene_id
,
$consensus
)
=
split
;
my
$strand
=
(
$strand
=~
/\+/
?
1
:
-
1
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment