removing quotation marks

579 views
Skip to first unread message

Aditi Vyas

unread,
Apr 12, 2019, 7:58:49 PM4/12/19
to cytoscape-helpdesk
When I import a .csv network interaction file to Cytoscape, the interactor names (such as rad1 or clp1 etc) are added in the source / name columns with quotation marks about them (so rad1 changes to "rad1")

I checked under the advanced options of the import tool, and made sure only comma separated values are selected, and also that the names of the columns are taken as strings and not integers. However no matter what I chose, the quotation marks show up in the imported network file and also on the graph. 

Could someone please help me understand how I can get around this?

Thank you!

Alex Pico

unread,
Apr 12, 2019, 8:51:29 PM4/12/19
to cytoscape...@googlegroups.com
Can you share your .csv file or at least a few lines it? Hard to diagnose without reproducing.
 - Alex



--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/17697850-49b7-47fd-8ed5-f294b39251c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aditi Vyas

unread,
Apr 13, 2019, 12:17:46 AM4/13/19
to cytoscape-helpdesk
Sure! Attached the file here.. Thanks for looking into it!

-Aditi.


On Friday, April 12, 2019 at 5:51:29 PM UTC-7, Alex Pico wrote:
Can you share your .csv file or at least a few lines it? Hard to diagnose without reproducing.
 - Alex


On Apr 12, 2019, at 4:58 PM, Aditi Vyas <aditi...@gmail.com> wrote:

When I import a .csv network interaction file to Cytoscape, the interactor names (such as rad1 or clp1 etc) are added in the source / name columns with quotation marks about them (so rad1 changes to "rad1")

I checked under the advanced options of the import tool, and made sure only comma separated values are selected, and also that the names of the columns are taken as strings and not integers. However no matter what I chose, the quotation marks show up in the imported network file and also on the graph. 

Could someone please help me understand how I can get around this?

Thank you!

--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
Sample file.csv

Alex Pico

unread,
Apr 13, 2019, 8:06:39 PM4/13/19
to cytoscape...@googlegroups.com
The file imports without any problems: without quotes and no special settings.

Are you using Cytoscape 3.7.1?
Are you using the right importer: File > Import > Network from file… ?

It should look like the attached screenshot. Then you just click OK.

 - Alex


To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.

To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.

For more options, visit https://groups.google.com/d/optout.
<Sample file.csv>

Aditi Vyas

unread,
Apr 15, 2019, 1:23:39 PM4/15/19
to cytoscape-helpdesk
Hi! 

Yes that's exactly what I've been doing but it imports with those quotations around every protein name. And I have the same version of cytoscape as well and am confused as to what is going awry.

I've attached screenshots below.
Import settings:screenshot1.jpgscreenshot2.jpg




screenshot3.jpg

But Imports with quotations: 




Not sure what I'm doing wrong or how to correct it.

-Aditi.


 - Alex


Dawn Apostolakou

unread,
Apr 16, 2019, 9:45:54 AM4/16/19
to cytoscape-helpdesk
Hello

I tried importing Aditi's file, as well as another csv, and I also see the quotation marks being imported, even though they are not shown in the Import Network from Table dialog.
Not sure if it matters but I have Cytoscape 3.7.1 on Windows 10.

A "solution" would be to open the file in Excel and copy paste the contents in a plain text file, basically just make it into a tab separated file with no quotation. 

Hope this helps,
Dawn

Aditi Vyas

unread,
Apr 16, 2019, 1:25:50 PM4/16/19
to cytoscape-helpdesk
That works great! 
Thanks so much Dawn and Alex for looking into this! :)

-Aditi.

Scooter Morris

unread,
Apr 18, 2019, 10:44:26 AM4/18/19
to cytoscape-helpdesk
I think you can also save the file as a text file (not a csv) and the quotes should be gone (or maybe I got that backwards?)

-- scooter
Reply all
Reply to author
Forward
0 new messages