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
caaf42ea
Commit
caaf42ea
authored
13 years ago
by
Aaron
Browse files
Options
Downloads
Patches
Plain Diff
tweaks to bamtofastq
parent
4ba5f455
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/bamToFastq/bamToFastq.cpp
+2
-0
2 additions, 0 deletions
src/bamToFastq/bamToFastq.cpp
src/bamToFastq/bamToFastq.h
+15
-15
15 additions, 15 deletions
src/bamToFastq/bamToFastq.h
src/bamToFastq/bamToFastqMain.cpp
+2
-1
2 additions, 1 deletion
src/bamToFastq/bamToFastqMain.cpp
with
19 additions
and
16 deletions
src/bamToFastq/bamToFastq.cpp
+
2
−
0
View file @
caaf42ea
...
...
@@ -176,6 +176,8 @@ void BamToFastq::PairedFastqUseTags() {
// since the info for both ends are contained in each BAM record,
// we only need to process one of the two records (bam1) in order
// to produce FASTQ entries for both ends.
// NOTE: Assumes that R2 and Q2 have already been rev
// and revcomped if necessary
if
(
bam1
.
IsFirstMate
()
==
true
)
{
// end1
fq1
<<
"@"
<<
bam1
.
Name
<<
"/1"
<<
endl
;
...
...
This diff is collapsed.
Click to expand it.
src/bamToFastq/bamToFastq.h
+
15
−
15
View file @
caaf42ea
...
...
@@ -30,26 +30,26 @@ class BamToFastq {
public:
// constructor
BamToFastq
(
string
bamFile
,
string
fastq1
,
string
fastq2
,
bool
useMateTags
,
bool
pairedEnd
);
// constructor
BamToFastq
(
string
bamFile
,
string
fastq1
,
string
fastq2
,
bool
useMateTags
,
bool
pairedEnd
);
// destructor
~
BamToFastq
(
void
);
// destructor
~
BamToFastq
(
void
);
private:
void
SingleFastq
();
void
PairedFastq
();
void
PairedFastqUseTags
();
void
SingleFastq
();
void
PairedFastq
();
void
PairedFastqUseTags
();
string
_bamFile
;
string
_bamFile
;
BamAlignment
_end1
;
BamAlignment
_end2
;
BamAlignment
_end1
;
BamAlignment
_end2
;
string
_fastq1
,
_fastq2
;
// the names of the fastq output files
bool
_useMateTags
;
// whether or not the mate sequence should be
// extracted from the R2 BAM tag.
string
_fastq1
,
_fastq2
;
// the names of the fastq output files
bool
_useMateTags
;
// whether or not the mate sequence should be
// extracted from the R2 BAM tag.
bool
_pairedEnd
;
};
This diff is collapsed.
Click to expand it.
src/bamToFastq/bamToFastqMain.cpp
+
2
−
1
View file @
caaf42ea
...
...
@@ -127,7 +127,8 @@ void bamtofastq_help(void) {
cerr
<<
"Usage: "
<<
PROGRAM_NAME
<<
" [OPTIONS] -i <BAM> -fq <FQ> "
<<
endl
<<
endl
;
cerr
<<
"Options:"
<<
endl
;
cerr
<<
"
\t
-fq2
\t
FASTQ for second end. Use if BAM contains paired-end data."
<<
endl
<<
endl
;
cerr
<<
"
\t
-fq2
\t
FASTQ for second end. Used if BAM contains paired-end data."
<<
endl
;
cerr
<<
"
\t\t
BAM should be sorted by query name is creating paired FASTQ."
<<
endl
<<
endl
;
cerr
<<
"
\t
-tags
\t
Create FASTQ based on the mate info"
<<
endl
;
cerr
<<
"
\t\t
in the BAM R2 and Q2 tags."
<<
endl
<<
endl
;
...
...
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