Code Monkey home page Code Monkey logo

htseq2multx's People

Contributors

hepcat72 avatar lparsons avatar

Watchers

 avatar  avatar  avatar  avatar

htseq2multx's Issues

Remove or document the conditional that checks that a tab character exists on STDOUT

I don't think that the check on the tab character is necessary anymore, but in the absence of documentation explaining why it was put there, there's no way to know for sure.

In fact, with the new accurate monitoring of the exit code of the fastq-multx executable via IO::Pipe::Producer v2.02, using STDERR content to make errors fatal may be unnecessary as well.

Try removing the tab check and see if things work. If they don't, but it back and document why it's there.

Original comment

Yeah, I also struggled over the tab and decided to err on the side of keeping the behavior consistent. I think it's entirely possible that I'd added the tab requirement to mitigate cases where $CHILD_ERROR was non-zero in the original code yet the output was complete. I wish I'd documented why I put that tab-case there.

I suspect that I had mis-remembered how IO::Pipe::Producer exits and that the child could have been exiting non-zero for a legitimate reason despite it looking successful, but I feel like I remember finding code in fastq-multx source where it was exiting non-0 for an inane reason.

It could be that I have fixed things such that it won't inappropriately exit non-0, in which case the tab check is unnecessary. Unfortunately, the only way to find out would be in the wild. So what do you think? Should I remove the tab check and risk a job failing so that I can improve this code or err on the side of consistency?

Originally posted by @hepcat72 in #9 (comment)

Github Build checks currently fail

Error: Unable to process command '::add-path::/home/runner/work/htseq2multx/htseq2multx/fastq-multx' successfully.
[9](https://github.com/hepcat72/htseq2multx/runs/7620069135?check_suite_focus=true#step:3:10)
Error: The `add-path` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

Error checking fastq-multx version

Line 536 seems to be generating an error on my system.

my $output = `($fastq_multx 3>&1 1>&2- 2>&3- ) | head -n 2`;

sh: 1: Syntax error: Bad fd number

The following extra and modified options apply specifically to the htseq2multx.pl wrapper (as opposed to barcode_splitter).

optional arguments:
  -h, --help            Supply twice to show this message and exit.
  --version             Supply once to get the barcode_splitter version that
                        this wrapper emulates.  Supply twice to get a more
                        verbose version of the barcode_splitter version that
                        this wrapper emulates and the version of this wrapper.

configuration arguments:
  --fastq-multx PATH    Path to the fastq-multx installation.  Default is to use
                        the PATH in the user's environment.
  --debug               Supply this flag to output the fastq-multx command on
                        standard error and not delete the temporary barcode
                        file.
ERROR: The fastq-multx executable appears to not be fastq-multx according to the first 2 lines of its usage.  Use the --fastq-multx option described above to supply fastq-multx.

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.