GithubHelp home page GithubHelp logo

tharos-ux / pancat Goto Github PK

View Code? Open in Web Editor NEW
28.0 2.0 1.0 1.79 MB

Pangenome graphs visualisation, distance computing, reconstruction of sequences and other utility functions

Home Page: https://tharos-ux.github.io/pangenome-notes/

License: GNU Affero General Public License v3.0

Python 79.74% Shell 1.14% HTML 18.93% Just 0.19%
pangenome pangenome-graph pangenomics variation-graph variation-graphs

pancat's Introduction

Welcome to Siegfried Dubois's Profile ๐Ÿ‘‹

I'm programming in many languages, though most of my code here is written in Python.

  • ๐Ÿ‘‹ Hi, Iโ€™m Siegfried (He/Him)
  • โค๏ธ I love algorithm creation, optimization and obfuscation.
  • ๐ŸŒฑ Iโ€™m currently mainly a Python developper.
  • ๐Ÿ’ผ I'm a PhD student at INRIA, in Brittany.
  • ๐Ÿ“– I used to have courses about teaching and vulgarization.
  • ๐Ÿฒ I'm a roleplayer, some of my repos are linked to this hobby!
  • ๐ŸŽฅ I do enjoy filmmaking, and have many ongoing projects.
  • ๐Ÿฑ I may like cats, also. Maybe a lil' too much. Meaow.

pancat's People

Contributors

tharos-ux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

blinard-bioinfo

pancat's Issues

Better display of node sizes in `grapher`

It has been determined the best way to inform the user of which size is the current segment is to use colors, but by classes (example: blue = 1-10bp, green = 10-50bp...)

pangraphs is not taking care of inversions

The commands reconstruct and edit are not aware of inversions. It will yield incorrect sequences, or refuse to do comparison because this is not correctly implemented.

Deleted dependency detected

I'm a Cyber Security researcher and developer of PackjGuard [1] to address open-source software supply chain attacks.

Issue

During my research, I found that this repo is vulnerable to attack due to deleted dependency from the public PyPI registry.

Details

Specifically, file requirements.txt lists gfatypes as one of the dependencies. However, it has been deleted from public PyPI. As such, an external bad actor can claim that name and register a malicious package, which will be then installed with pip install command, resulting in arbitrary remote code execution.

Impact

Not only your apps/services using https://github.com/Tharos-ux/pancat repo code are vulnerable to this attack, but the users of your open-source Github repo could also fall victim.

You could read more about such attacks here: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610

Remediation

Please manually register a placeholder gfatypes package on PyPI immediately or remove gfatypes dependency from requirements.txt to fix this vulnerability.

To automatically fix such issues in future, please install PackjGuard Github app [1].

Thanks!

  1. PackjGuard is a Github app that monitors your repos 24x7, detects vulnerable/malicious/risky open-source dependencies, and creates pull requests for auto remediation: https://github.com/marketplace/packjguard

Complete pangenome graph assertion

It has been suggested to add an option to reconstruct where you specifiy fasta input sequences, and the program tells if the graph is a complete pangenome graph or not.

Using `grapher` or `stats` on a graph without paths raises error

Error TypeError: 'builtin_function_or_method' object is not iterable is happening when one try to compute cyclicity of graph:

โ”‚ โฑ 84 โ”‚ stats["Is graph acyclic"] = all([len(set([x for x, _ in path_datas["path"]])) == len โ”‚
โ”‚ 85 โ”‚ โ”‚ path_datas["path"]) for path_datas in graph.paths.values]) โ”‚

Needs some default value and error handling if no paths is provided.

Fix `grapher` wrong path args

As of now, output is given as the form of path + job name. Would be better if user only gives the path to the output file.

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.