-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct import of Excel adjacency matrix format data #1143
Comments
I think you are using the spreadsheet format, Gephi also supports a CSV format. To import matrix csv format use File - Open menu item. For xls files, you can just export them to csv from excel. |
Thanks for the tip, but that does not answer my question about importing a CSV in an adjacency matrix format rather than an edge list. Is that possible? —Max Sent from my phone, so please enjoy the autocorrect errors and uncharacteristic brevity.
|
The CSV importer supports Matrix formatting, isn't this what you need? http://gephi.github.io/users/supported-graph-formats/csv-format/ |
That seems to be incorrect. When I import an adjacency matrix CSV in the Data Laboratory window, I get the attached error. When I try to open it under File:Open, it still reads it as just an edge list in source—>target format. (see second attached screenshot) Can you be more precise how I would access the functionality you are describing? The documentation page you linked to is not at all clear. I'm attaching the CSV in case it helps. —Max Max Freund • [email protected] • (909) 632-1624
|
Hi Max, I am able to correctly import a matrix CSV formatted like the example in that page: |
Hi Eduardo, I sent my file as an attachment to my last message (sent Oct 9). Here it is again. My last message also included screenshots of the errors I got when I tried to import it. —Max Max Freund • [email protected] • (909) 632-1624
|
It seems mail attachments are not processed by github, so they are not available here. |
Ah, good to know. Since Github doesn't allow me to attach a csv or xlsx, here's a link to download the data file: |
The file is not found, but that kind of CSV file has to be imported with menu File - Open, instead of import spreadhseet. CSV format is different than spreadsheet format, we will clarify this in the next release. |
Ah yes, that is very confusing. Also, the documentation does not say that the matrix has to be just the edges, without any node labels or numbering to identify the node. If you later import the edge attributes, that could complicate things if the nodes listed in the matrix are not in exactly the same order as the edge attributes. In the short term, it would be great if the documentation wiki were clarified. |
Yes, import spreadsheet is aimed at directly importing tabular data into data laboratory tables, meaning We will improve the explanation of this import. |
So then... how does one go about importing attributes (node names, lat/long, etc.) to the nodes found in the adjacency matrix? So far, I can only get it to import if all my nodes are labeled 1, 2, 3, 4, 5... which is not helpful. I need the attributes. |
Maybe I am wrong... |
Actually this should now be possible in Gephi 0.9.2 (nightly build available at https://github.com/gephi/gephi/#nightly-builds). CSV and XLS import is unified in a single importer with auto-detection of format and other improvements. Marking as implemented in #1282 |
Hi, |
Anirban,
Did you get an answer to your question? There are two primary ways to
import data into Gephi: 1) adjacency matrix, 2) edge list. The second is
more common but the first is totally possible (what you are trying to do).
You have to ensure that your file is a CSV file, not an Excel file. If you
need further guidance, let me know.
Melonie
…On Tue, Oct 5, 2021 at 1:03 PM Anirban Sengupta ***@***.***> wrote:
Hi,
I am new user to gephi. I am trying it out for fMRI data which is in the
form of correlation matrix. I am not able to find sufficient tutorial for
how to load data in correlation matrix form/adjacency form. Attached is the
excel file that I want to make a graph of. Can you let me know how to
arrange it and how to load the data ? Thanks...
DataSet2_Edges.xlsx
<https://github.com/gephi/gephi/files/7287752/DataSet2_Edges.xlsx>
DataSet2_Node.xlsx
<https://github.com/gephi/gephi/files/7287753/DataSet2_Node.xlsx>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1143 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEC7HLECN5A4FPWNWD4P7J3UFMVWLANCNFSM4BRCHBOQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
How can i import correaltion matrix into Gephi. I had already plot my network co-corrence on gephi but i want my edges to be based on positive and negative correlation and not on weight. Please how can i go about this. |
Unless I'm missing something, the "Excel import" really just seems to be a character-delimited text file import with a requirement that the edges be set up in the usual source,target format. As far as I can tell, Gephi does not actually import .xls or .xlsx files. Also, the source,target format is inconvenient since data collected via surveys usually comes through as a source x target matrix. I have found no easy way to convert matrix format data to a list of edges.
It would make Gephi much more user friendly if it were possible to:
(a) import data as an adjacency matrix (whether in Excel or csv format)
(b) import data as .xls and .xlsx files
If this is already possible, then it needs to be added to the documentation. I can't find any instruction in the tutorials, and a search of the documentation on Github for "xls" and "xlsx" does not return any results.
The text was updated successfully, but these errors were encountered: