AnswerBun.com

Number of edges in Graphical Analysis using Jupyter with Go Programming language

Bioinformatics Asked on April 7, 2021

I’m trying to learn graphical analysis in a biological setting.

The online course suggested using the Go Programming language, so I’m new to it and help to understand why the number of edges that I read from the following code is different than from the site I’m downloading it from.

import (
    "fmt"
    "log"

    "github.com/kortschak/graphprac"
)

infile := "YeastL.dot"
g, err := graphprac.NewGraph(infile)
if err != nil {
    log.Fatalf("failed to read graph: %v", err)
}
{
    fmt.Printf("G has %d nodes and %d edges.n", g.Nodes().Len(), g.Edges().Len())
}

The output I’m getting is: G has 2361 nodes and 6646 edges.

But from the website http://vlado.fmf.uni-lj.si/pub/networks/data/bio/Yeast/Yeast.htm it’s suppose to read 7182 edges.

Thanks!

One Answer

the dot file in the Git repo has 6646 edges, the pajek file in your link has 7182.

Chances are the latter has been updated since.

Answered by Bastian Schiffthaler on April 7, 2021

Add your own answers!

Related Questions

Blastp MSA to the same length

0  Asked on July 14, 2021

   

ATAC-seq macs2 peak splitting in sliding windows

1  Asked on July 12, 2021 by user5191

   

Subset FASTA file by species name

2  Asked on July 10, 2021 by tahunami

     

Querying metadata (GDC) using a filter

1  Asked on July 10, 2021 by lab

 

Get gene sequence based on the annotation

3  Asked on July 9, 2021 by igor-filippov

       

Hg38 annotation tracks retrieval

1  Asked on July 6, 2021 by trakesh

   

Extracting WDL map keys as a task

1  Asked on July 5, 2021 by xophmeister

 

A database for RefSeq protein accession IDs

1  Asked on July 3, 2021 by ehsan-salehabadi

     

two aligners combined results

1  Asked on July 2, 2021

 

Does NCBI’s blast API block my IP?

1  Asked on July 1, 2021

   

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir