Giter Site home page Giter Site logo

Comments (6)

github-actions avatar github-actions commented on August 22, 2024

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

from readfish.

mattloose avatar mattloose commented on August 22, 2024

HI,

Thanks for raising this - we will have a look. We tend not to run on flongles for a variety of reasons.

Will post here when the issue is resolved.

Matt

from readfish.

mattloose avatar mattloose commented on August 22, 2024

OK - we've found the issue - it is a bug due to the unusual size of the flongle flowcell.

We will fix this and implement in the next release of readfish. If you want to manually make this work for your flongle, please edit this line in your local copy of the code:

flowcell_size: int, split: int = 1, axis: int = 1, index: int = 0

and change
axis: int = 1
to
axis: int = 0

The reason the validate command works is that it does not the flowcell shape - this is only done when you run with a live flowcell.

from readfish.

Dcwrenn avatar Dcwrenn commented on August 22, 2024

Hi Matt,
Thank you for your quick response. Apologies for my delay in getting back to you - we've just been able to try the manual fix you suggested. We are still getting errors after adjusting to axis: int = 0. The new errors we are seeing are below:

Traceback (most recent call last):
  File "<cattrs generated structure readfish._config.Conf>", line 33, in structure_Conf
    return __cl(
  File "<attrs generated init readfish._config.Conf>", line 14, in __init__
    self.__attrs_post_init__()
  File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/_config.py", line 284, in __attrs_post_init__
    split_channels = generate_flowcell(self.channels, len(self.regions) or 1)
  File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/_utils.py", line 384, in generate_flowcell
    raise ValueError("The flowcell cannot be split evenly")
ValueError: The flowcell cannot be split evenly

During handling of the above exception, another exception occurred:

  + Exception Group Traceback (most recent call last):
  |   File "/home/dcwrenn/miniconda3/envs/readfish/bin/readfish", line 8, in <module>
  |     sys.exit(main())
  |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/_cli_base.py", line 61, in main
  |     raise SystemExit(args.func(parser, args, extras))
  |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/entry_points/targets.py", line 616, in run
  |     conf = Conf.from_file(args.toml, read_until_client.channel_count, logger=logger)
  |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/_config.py", line 376, in from_file
  |     return cls.from_dict(dict_, channels)
  |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/_config.py", line 394, in from_dict
  |     return conv.structure(dict_, cls)
  |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/cattrs/converters.py", line 332, in structure
  |     return self._structure_func.dispatch(cl)(obj, cl)
  |   File "<cattrs generated structure readfish._config.Conf>", line 36, in structure_Conf
  |     except Exception as exc: raise __c_cve('While structuring ' + 'Conf', [exc], __cl)
  | cattrs.errors.ClassValidationError: While structuring Conf (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/_utils.py", line 378, in generate_flowcell
    |     arr = np.array(np.split(arr, split, axis=axis))
    |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/numpy/lib/shape_base.py", line 864, in split
    |     raise ValueError(
    | ValueError: array split does not result in an equal division
    | 
    | During handling of the above exception, another exception occurred:
    | 
    | Traceback (most recent call last):
    |   File "<cattrs generated structure readfish._config.Conf>", line 33, in structure_Conf
    |     return __cl(
    |   File "<attrs generated init readfish._config.Conf>", line 14, in __init__
    |     self.__attrs_post_init__()
    |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/_config.py", line 284, in __attrs_post_init__
    |     split_channels = generate_flowcell(self.channels, len(self.regions) or 1)
    |   File "/home/dcwrenn/miniconda3/envs/readfish/lib/python3.10/site-packages/readfish/_utils.py", line 384, in generate_flowcell
    |     raise ValueError("The flowcell cannot be split evenly")
    | ValueError: The flowcell cannot be split evenly
    +------------------------------------

from readfish.

Adoni5 avatar Adoni5 commented on August 22, 2024

Hi @Dcwrenn, apologies that should read:

def generate_flowcell(
flowcell_size: int, split: int = 1, axis: int = 1, odd_even: bool = False
) -> list[list[int]]:

axis: int = 1
to
axis: int = 0

What we've changed above will let us draw an ASCII split flow cell to the CLI, so that is also required!
Cheers.
Rory

from readfish.

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.