Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. from_soft:
  2. # text-text-text-text-text-text-text-text-text-text-
  3. # text-text-text-text-text-text-text-text-text-text-
  4. # text-text-text-text-text-text-text-text-text-text-
  5. # text-text-text-text-text-text-text-text-text-text-
  6.  
  7. 1: SpeciesA SpeciesB SpeciesC SpeciesD SpeciesE
  8. 2: SpeciesA SpeciesC SpeciesE SpeciesD SpeciesF SpeciesG SpeciesH
  9. 3: SpeciesB SpeciesC SpeciesF
  10. 4: SpeciesB SpeciesC SpeciesD SpeciesF SpeciesH
  11. [...]
  12.  
  13. cliques<-readLines("from_soft.txt",n=-1,ok=T,warn=T,encoding="unknow",skipNul=F)
  14.  
  15. from_soft<-as.data.frame(from_soft)[-(1:5),]
  16.  
  17. head(from_soft)
  18. [1] 0: SpeciesA SpeciesB SpeciesC SpeciesD SpeciesE 1: SpeciesA SpeciesB SpeciesC SpeciesD SpeciesE 2: SpeciesA SpeciesB SpeciesC SpeciesD SpeciesE
  19. [4] 3: SpeciesB SpeciesC SpeciesD SpeciesF SpeciesH [...]
  20.  
  21. print(ref)
  22. 3324 SpeciesA SpeciesB 1
  23. 3325 SpeciesA SpeciesC 2
  24. 3326 SpeciesA SpeciesD 12
  25. 3327 SpeciesA SpeciesE 1
  26. 3328 SpeciesA SpeciesF 71
  27. 3329 SpeciesA SpeciesG 6
  28. 3330 SpeciesA SpeciesH 15
  29. 3331 SpeciesB SpeciesC 2
  30. 3332 SpeciesB SpeciesF 4
  31. 3333 SpeciesB SpeciesD 17
  32. [...]
  33.  
  34. 1: SpeciesASpeciesB|SpeciesASpeciesC|SpeciesASpeciesD|SpeciesASpeciesE|SpeciesBSpeciesC|SpeciesBSpeciesD|SpeciesBSpeciesE|SpeciesCSpeciesD|SpeciesCSpeciesE|SpeciesDSpeciesE|
  35.  
  36. 1: 3.5 (= mean of all pairs in the clique '1:')
  37. 2: 4.2
  38. 3: 1.5
  39. 4: 6
  40. [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement