Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Blaise LI
libhts
Commits
711099aa
Commit
711099aa
authored
Feb 11, 2021
by
Blaise Li
Browse files
Add option to filter according to strand.
parent
5caa8ef3
Changes
1
Show whitespace changes
Inline
Side-by-side
scripts/bed_bam2fq.py
View file @
711099aa
...
...
@@ -13,7 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Extract
s
the fastq reads from a bam file
"""Extract the fastq reads from a bam file
corresponding to the annotations provided in a bed file.
"""
...
...
@@ -38,6 +38,12 @@ def main():
"-a"
,
"--bamfile"
,
required
=
True
,
help
=
"Input bam file."
)
parser
.
add_argument
(
"-s"
,
"--strand"
,
default
=
"Any"
,
choices
=
[
"Any"
,
"Same"
,
"Opposite"
],
help
=
"Choose hether to keep all reads or only "
"those on one strand with respect to bed annotations."
)
args
=
parser
.
parse_args
()
bamfile
=
BamFile
(
args
.
bamfile
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment