Skip to content

fhopp/ucsb-network-data-science-2016

 
 

Repository files navigation

ucsb-network-data-science-2016

UCSB IGERT Network Data Science Boot Camp (2016) materials

This is initially just my portion of the boot camp for setup and 2 hours of initial instruction.

Setup

Optional in brackets:

  • Python: Anaconda distribution
    • IDE: Rodeo like RStudio
  • [R, Rstudio]
  • Git, Github. [GitKraken]

Git, Github

  • git vs github
  • Github Features
  • Exercises:
    • setup Github account
    • Exercise for git: clone, add (json for class directory), commit, push, pull request
  • [Github Pages, Markdown, Rmarkdown, presentation, website]

Python

Have notes, but do interactively

PANDAS

Tabular data (esp CSV)

import csv

d = {} rdr = csv.reader(open('filename.csv', 'r')) d.keys = rdr.next() for row in rdr: k, v = row d[d.keys()] = v

-[pandas](http://pandas.pydata.org/pandas-docs/stable/) is well suited for "Tabular data with heterogeneously-typed columns, as in an SQL table or Excel spreadsheet"
- [Package overview — pandas 0.18.1 documentation](http://pandas.pydata.org/pandas-docs/stable/overview.html)
- [10 Minutes to pandas — pandas 0.18.1 documentation](http://pandas.pydata.org/pandas-docs/stable/10min.html)
- read csv (vs dic representation)
  ```python
  dic = pd.Series.from_csv(filename, names=cols, header=None).to_dict()

Projects

Both projects rely on creation of simpler networks from a dense raster for various applications:

  • assessing spatial connectivity of habitats (Python)

    • extract TIN with cumulative distance away from patches for determining distances away
    • Keitt & Urban, Urban et al
  • ship routing applications to avoid whale strikes (R)

    • increase density closer to shore
  • how to make sparse networks from:

    • dens

About

UCSB IGERT Network Data Science Boot Camp (2016) materials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 76.6%
  • Jupyter Notebook 18.9%
  • Ruby 2.6%
  • HTML 1.3%
  • JavaScript 0.6%