Git Product home page Git Product logo

Comments (10)

fairliereese avatar fairliereese commented on June 9, 2024

from swan_vis.

fairliereese avatar fairliereese commented on June 9, 2024

Please look at this section of the documentation: https://freese.gitbook.io/swan/tutorials/getting_started#adding-transcript-models-from-a-gtf

from swan_vis.

xiaonalu avatar xiaonalu commented on June 9, 2024

Thank you for the tutorial. There is still an issue regarding the "merge on int64" as below

Traceback (most recent call last):
  File "/Swan/Swan.py", line 24, in
    sg.add_abundance(ab_file)
  File "/conda_envs/swan/lib/python3.9/site-packages/swan_vis/swangraph.py", line 276, in add_abundance
    df = df.merge(self.t_df['tid'].to_frame(), how='right', left_on='tid', right_index=True)
  File "/conda_envs/swan/lib/python3.9/site-packages/pandas/core/frame.py", line 9191, in merge
    return merge(
  File "/conda_envs/swan/lib/python3.9/site-packages/pandas/core/reshape/merge.py", line 105, in merge
    op = _MergeOperation(
  File "/conda_envs/swan/lib/python3.9/site-packages/pandas/core/reshape/merge.py", line 702, in init
    self._maybe_coerce_merge_keys()
  File "/conda_envs/swan/lib/python3.9/site-packages/pandas/core/reshape/merge.py", line 1255, in _maybe_coerce_merge_keys
    raise ValueError(msg)
ValueError: You are trying to merge on int64 and object columns. If you wish to proceed you should use pd.concat

from swan_vis.

fairliereese avatar fairliereese commented on June 9, 2024

Can you send me a screenshot of your abundance file please?

from swan_vis.

xiaonalu avatar xiaonalu commented on June 9, 2024

Yes. Thank you
Screen Shot 2021-12-10 at 1 51 23 PM

from swan_vis.

fairliereese avatar fairliereese commented on June 9, 2024

Can you also please send me a couple of lines of your GTF? It seems like you might have mismatches between the transcript IDs reported in your GTF and reported in your abundance matrix.

from swan_vis.

xiaonalu avatar xiaonalu commented on June 9, 2024

Could this link work for you?https://drive.google.com/drive/folders/1mxvjWqdYfzzdTNJPP9aOiJHnnFoWwMNv?usp=sharing
Thanks a lot

from swan_vis.

fairliereese avatar fairliereese commented on June 9, 2024

Nope, I don't have access to that. Just the first few lines copied here should work.

from swan_vis.

xiaonalu avatar xiaonalu commented on June 9, 2024

I figure out the reason of that error I think. When SQANTI3 generate the abundance matrix, the third column is p value. I removed it using excel, when I forgot to change the format. When I use the corrected tab separate file, the problem solved. Thank you so much for the wonderful script. The figure is very beautiful.

from swan_vis.

fairliereese avatar fairliereese commented on June 9, 2024

Oh perfect, glad it worked for you! Please don't hesitate to ask if you have any more questions :)

from swan_vis.

Related Issues (19)

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.