python-novice-inflammation

Programming with Python

https://github.com/swcarpentry/python-novice-inflammation

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: plos.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary

Keywords

automation carpentries data-analysis data-visualization english functions lesson loops matplotlib numpy programming python software-carpentry stable
Last synced: 4 months ago · JSON representation ·

Repository

Programming with Python

Basic Info
Statistics
  • Stars: 313
  • Watchers: 81
  • Forks: 793
  • Open Issues: 154
  • Releases: 6
Topics
automation carpentries data-analysis data-visualization english functions lesson loops matplotlib numpy programming python software-carpentry stable
Created about 11 years ago · Last pushed 4 months ago
Metadata Files
Readme Contributing License Code of conduct Citation Authors Zenodo

README.md

Programming with Python

GitHub release Create a Slack Account with us Slack Status

An introduction to Python for non-programmers using inflammation data.

About the Lesson

This lesson teaches novice programmers to write modular code to perform data analysis using Python. The emphasis, however, is on teaching language-agnostic principles of programming such as automation with loops and encapsulation with functions, see Best Practices for Scientific Computing and Good enough practices in scientific computing to learn more.

The example used in this lesson analyses a set of 12 files with simulated inflammation data collected from a trial for a new treatment for arthritis. Learners are shown how it is better to automate analysis using functions instead of repeating analysis steps manually.

The rendered version of the lesson is available at: https://swcarpentry.github.io/python-novice-inflammation/.

This lesson is also available in R and MATLAB.

Episodes

| # | Episode | Time | Question(s) | | --: | :------ | :--: | :--------------------------------------------------------------------------- | | 1 | Python Fundamentals | 30 | What basic data types can I work with in Python?
How can I create a new variable in Python?
Can I change the value associated with a variable after I create it? | | 2 | Analyzing Patient Data | 60 | How can I process tabular data files in Python? | | 3 | Visualizing Tabular Data | 50 | How can I visualize tabular data in Python?
How can I group several plots together? | | 4 | Storing Multiple Values in Lists | 30 | How can I store many values together? | | 5 | Repeating Actions with Loops | 30 | How can I do the same operations on many different values? | | 6 | Analyzing Data from Multiple Files | 20 | How can I do the same operations on many different files? | | 7 | Making Choices | 30 | How can my programs do different things based on data values? | | 8 | Creating Functions | 30 | How can I define new functions?
What's the difference between defining and calling a function?
What happens when I call a function? | | 9 | Errors and Exceptions | 30 | How does Python report errors?
How can I handle errors in Python programs? | | 10 | Defensive Programming | 30 | How can I make my programs more reliable? | | 11 | Debugging | 30 | How can I debug my program? | | 12 | Command-Line Programs | 30 | How can I write Python programs that will work like Unix command-line tools? |

Contributing

Travis Build Status

We welcome all contributions to improve the lesson! Maintainers will do their best to help you if you have any questions, concerns, or experience any difficulties along the way.

We'd like to ask you to familiarize yourself with our Contribution Guide and have a look at the more detailed guidelines on proper formatting, ways to render the lesson locally, and even how to write new episodes!

Maintainers

Lesson maintainers are Toan Phung and Indraneel Chakraborty.

Authors

A list of contributors to the lesson can be found in AUTHORS.

License

Instructional material from this lesson is made available under the Creative Commons Attribution (CC BY 4.0) license. Except where otherwise noted, example programs and software included as part of this lesson are made available under the MIT license. For more information, see LICENSE.md.

Citation

To cite this lesson, please consult with CITATION.

About Software Carpentry

Software Carpentry is a volunteer project that teaches basic computing skills to researchers since 1998. More information about Software Carpentry can be found here.

About The Carpentries

The Carpentries is a registered 501(c)3 non-profit organisation based in Delaware, USA. We are a global community teaching foundational computational and data science skills to researchers in academia, industry and government. More information can be found here.

Owner

  • Name: Software Carpentry
  • Login: swcarpentry
  • Kind: organization
  • Email: team@carpentries.org

Home for Software Carpentry repos for website, lessons and templates

Citation (CITATION)

Please cite as:

Azalee Bostroem, Trevor Bekolay, and Valentina Staneva (eds):
"Software Carpentry: Programming with Python."  Version 2016.06, June
2016, https://github.com/swcarpentry/python-novice-inflammation,
10.5281/zenodo.57492.

GitHub Events

Total
  • Issues event: 5
  • Watch event: 13
  • Delete event: 14
  • Issue comment event: 26
  • Push event: 73
  • Pull request review comment event: 4
  • Pull request review event: 22
  • Pull request event: 24
  • Fork event: 19
  • Create event: 12
Last Year
  • Issues event: 5
  • Watch event: 13
  • Delete event: 14
  • Issue comment event: 26
  • Push event: 73
  • Pull request review comment event: 4
  • Pull request review event: 22
  • Pull request event: 24
  • Fork event: 19
  • Create event: 12

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 4
  • Total pull requests: 10
  • Average time to close issues: about 1 year
  • Average time to close pull requests: 3 days
  • Total issue authors: 3
  • Total pull request authors: 6
  • Average comments per issue: 4.0
  • Average comments per pull request: 0.9
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 10
  • Average time to close issues: 26 days
  • Average time to close pull requests: 3 days
  • Issue authors: 2
  • Pull request authors: 6
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.9
  • Merged pull requests: 8
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • maneesha (3)
  • dhvalden (1)
  • MarkoSchuetz (1)
  • wood-chris (1)
  • tobyhodges (1)
Pull Request Authors
  • carpentries-bot (6)
  • maneesha (5)
  • jensbri (3)
  • tobyhodges (2)
  • unode (2)
  • fkohrt (1)
  • Maascha (1)
  • tmorrell (1)
  • gmloose (1)
  • dhvalden (1)
  • edbennett (1)
  • sfmig (1)
  • finchnSNPs (1)
  • AlbertoImg (1)
Top Labels
Issue Labels
type:enhancement (1)
Pull Request Labels
type: template and tools (6)

Dependencies

requirements.txt pypi
  • PyYAML *
  • update-copyright *
.github/workflows/pr-close-signal.yaml actions
  • actions/upload-artifact v3 composite
.github/workflows/pr-comment.yaml actions
  • actions/checkout v3 composite
  • carpentries/actions/check-valid-pr main composite
  • carpentries/actions/comment-diff main composite
  • carpentries/actions/download-workflow-artifact main composite
.github/workflows/pr-post-remove-branch.yaml actions
  • carpentries/actions/download-workflow-artifact main composite
  • carpentries/actions/remove-branch main composite
.github/workflows/pr-preflight.yaml actions
  • carpentries/actions/check-valid-pr main composite
  • carpentries/actions/comment-diff main composite
.github/workflows/pr-receive.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • carpentries/actions/check-valid-pr main composite
  • carpentries/actions/setup-lesson-deps main composite
  • carpentries/actions/setup-sandpaper main composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/sandpaper-main.yaml actions
  • actions/checkout v3 composite
  • carpentries/actions/setup-lesson-deps main composite
  • carpentries/actions/setup-sandpaper main composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/update-cache.yaml actions
  • actions/checkout v3 composite
  • carpentries/actions/check-valid-credentials main composite
  • carpentries/actions/update-lockfile main composite
  • carpentries/create-pull-request main composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/update-workflows.yaml actions
  • actions/checkout v3 composite
  • carpentries/actions/check-valid-credentials main composite
  • carpentries/actions/update-workflows main composite
  • carpentries/create-pull-request main composite