Comments (10)
from swan_vis.
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.
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.
Can you send me a screenshot of your abundance file please?
from swan_vis.
from swan_vis.
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.
Could this link work for you?https://drive.google.com/drive/folders/1mxvjWqdYfzzdTNJPP9aOiJHnnFoWwMNv?usp=sharing
Thanks a lot
from swan_vis.
Nope, I don't have access to that. Just the first few lines copied here should work.
from swan_vis.
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.
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)
- swanvis broken? HOT 3
- Intron retention and exon skipping analysis HOT 22
- Missing transcripts HOT 3
- AttributeError: 'SwanGraph' object has no attribute 'ass_transcriptome' HOT 2
- plot a transcript with all transcripts as background HOT 8
- relation between splicing in/out sites and exons HOT 5
- Issues differential expression HOT 3
- Differential isoform usage multiple conditions HOT 1
- find_es_genes returns duplicated entries
- Example code problem HOT 1
- MemoryError: Unable to allocate 113. GiB for an array with shape (9992, 3033596) and data type float32 HOT 5
- Switch diffexp to pydeseq2 for differential gene and transcript expression testing HOT 1
- cannot load swan into python using recommended installation method
- self.create_dfs_db(fname, annot, whitelist, 'hepg2_1') HOT 2
- ValueError HOT 10
- ES IR error HOT 10
- Missing case for plottedgraph init HOT 2
- Novelty info not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swan_vis.