Giter Site home page Giter Site logo

output file name about chromosight HOT 8 CLOSED

Phlya avatar Phlya commented on August 16, 2024
output file name

from chromosight.

Comments (8)

Phlya avatar Phlya commented on August 16, 2024 1

Nice, sounds good. Just important for it to handle absolute and relative paths. Thank you!

from chromosight.

cmdoret avatar cmdoret commented on August 16, 2024 1

Hi, this has been addressed in #28, I'll make a release soon when checks have passed :)

from chromosight.

cmdoret avatar cmdoret commented on August 16, 2024

Hi @Phlya ,

Yes, I could add like a --prefix option. In a snakemake workflow, the output filenames would currently be:

output:
    tbl = "{sample}/loops_out.txt",
    win = "{sample}/loops_out.json"

whereas with a --prefix option, it would become:

output:
    tbl = "{sample}.txt",
    win = "{sample}.json"

Do you think the latter option would be more convenient to work with ?
In that case the command
chromosight detect sample.cool sample/
would become
chromosight detect --prefix sample sample.cool

I agree the possibility to customize output filenames would be nice. I'm just a bit concerned the CLI is becoming bloated with all the options. What do you think about a --prefix option ?

from chromosight.

Phlya avatar Phlya commented on August 16, 2024

Prefix is good! Assuming it allows to include a path to a different folder, and it's not just saved in the same folder with the prefix...

from chromosight.

cmdoret avatar cmdoret commented on August 16, 2024

Right, it would be confusing to add --prefix while keeping a positional argument for the output directory, I think I'll simply replace the output directory argument by output prefix and remove predefined output filenames. This way, chromosight detect input.cool out_dir/output would produce out_dir/output.txt and out_dir/output.json. That seems more intuitive.

Thanks for the feedback, I'll get back to you. !

from chromosight.

cmdoret avatar cmdoret commented on August 16, 2024

This is now the default behaviour in chromosight 1.2.0, thanks !

from chromosight.

Phlya avatar Phlya commented on August 16, 2024

Awesome, thanks!

from chromosight.

Phlya avatar Phlya commented on August 16, 2024

Very quick fix!

from chromosight.

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.