Coder Social home page Coder Social logo

[BAM] Add function to slice BAM about fuc HOT 3 CLOSED

sbslee avatar sbslee commented on June 11, 2024
[BAM] Add function to slice BAM

from fuc.

Comments (3)

sbslee avatar sbslee commented on June 11, 2024 1

@harish0201, thanks for the idea! I had to do that multiple times to create "mini" BAMs. I will definitely add the command in v0.8.0 (will call it something like bam_slice).

from fuc.

sbslee avatar sbslee commented on June 11, 2024 1

@harish0201,

I just added a new command called bam_slice to the v0.8.0 version of fuc (0a7588e):

(fuc) sbslee@Seung-beens-MacBook-Air docs % fuc -v
fuc 0.8.0
(fuc) sbslee@Seung-beens-MacBook-Air docs % fuc bam_slice -h
usage: fuc bam_slice [-h] [--no_index] input_bam region output_bam

This command will slice a BAM file. By default, the command will create a accompanying index file (.bai) for the output BAM file.

positional arguments:
  input_bam   input BAM file
  region      target region
  output_bam  output BAM file

optional arguments:
  -h, --help  show this help message and exit
  --no_index  use to this flag to skip indexing

To install the latest v0.8.0 version, clone the repository and install fuc in the following way:

$ git clone https://github.com/sbslee/fuc
$ cd fuc
$ git checkout 0.8.0-dev
$ pip install .

Let me know what you think! If you have additional feature requests, feel free to share as well (in a separate issue).

from fuc.

harish0201 avatar harish0201 commented on June 11, 2024

Thank you!

from fuc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.