Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bedtools2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
legacy
bedtools2
Commits
ca1d3bdd
Commit
ca1d3bdd
authored
11 years ago
by
arq5x
Browse files
Options
Downloads
Patches
Plain Diff
formatting
parent
e379c072
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/utils/FileRecordTools/Records/VcfRecord.cpp
+29
-0
29 additions, 0 deletions
src/utils/FileRecordTools/Records/VcfRecord.cpp
src/utils/FileRecordTools/Records/VcfRecord.h
+1
-0
1 addition, 0 deletions
src/utils/FileRecordTools/Records/VcfRecord.h
with
30 additions
and
0 deletions
src/utils/FileRecordTools/Records/VcfRecord.cpp
+
29
−
0
View file @
ca1d3bdd
...
...
@@ -80,3 +80,32 @@ void VcfRecord::printOtherFields(QuickString &outBuf) const {
}
}
const
QuickString
&
VcfRecord
::
getField
(
int
fieldNum
)
const
{
//a request for any of the first six fields will retrieve
//chrom, start, end, name, score, and strand, in that order.
//A request for field 6+ will go to the otherIdxs.
switch
(
fieldNum
)
{
case
1
:
return
_chrName
;
break
;
case
2
:
return
_startPosStr
;
break
;
case
3
:
return
_name
;
case
4
:
return
_varAlt
;
break
;
case
5
:
return
_varRef
;
break
;
case
6
:
return
_score
;
default:
return
BedPlusInterval
::
getField
(
fieldNum
);
break
;
}
}
This diff is collapsed.
Click to expand it.
src/utils/FileRecordTools/Records/VcfRecord.h
+
1
−
0
View file @
ca1d3bdd
...
...
@@ -29,6 +29,7 @@ public:
//if the number of fields frequently differ between this object and the one being copied.
const
BedPlusInterval
&
operator
=
(
const
VcfRecord
&
other
);
virtual
const
QuickString
&
getField
(
int
fieldNum
)
const
;
protected
:
QuickString
_varAlt
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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