Skip to content

Clustergrammer- Network load_file : Passing filename dynamically #8

@sundaresanab

Description

@sundaresanab

Hi,

We trying to pass the filename dynamically in 'make_clustergrammer.py', each call the text file name will be different.

fileName = sys.argv[1:]
loadFile = ''.join(fileName)
decoded_string = bytes(loadFile, "utf-8").decode("unicode_escape") # python3

load matrix tsv file

tempassign = decoded_string.replace('"','')
confilename = 'txt/' + tempassign + '.' + 'txt'
print(confilename )
net.load_file(confilename)

Error which i m getting as follows,

FileNotFoundError: [Errno 2] No such file or directory: 'txt/.txt'

1 . assigned variable is empty
2. I m communicating python script from nodejs.

Pls help me out, i got stuck with this more than a week.

Really, this clustergrammer is what needed exactly for our project.

We using MEAN(MongoDb, ExpressJS, Angular 4, NodeJs).

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions