Join me in building python coding skills! I am a young neurodivergent person hoping to share my past python projects with tips on how to make similar types of programs. In this blog, I would like to talk about python... and neurodiversity!
Monday, September 19, 2022
UPDATE: I HAVE RETURNED!!!
Wednesday, March 30, 2022
Story time: That time an international student applied for a PhD for UK/settled status students (PhD in UK)
Welcome back!
And... I know that in last month's post I announced that I would make a Part 2 for Project 8: Logistic Regression but due to life being really busy for me at the moment, I've decided to make a chill story time about what happened when I, an international student, applied for a PhD in the UK even though the position was advertised exclusively for people from the UK. Hopefully y'all will like this, since my last story time was one of the most popular posts in this blog. ๐
Alright, cut to the chase. Did you get in?
What was the PhD about?
What made you decide to apply for a PhD for locals when you'd be an international student?
Would you say that knowing the right person that can give you an "in" is important when applying for PhDs?
How come you didn't apply for a PhD in your home country?
Would you recommend international students to apply for PhDs not intended for international students?
Wow! I guess there's quite a lot of ground to cover when it comes to PhD applications. I thought that a PhD is like an extension of school.
Final thoughts
Monday, February 28, 2022
Project 8 Part 1: Logistic Regression - Python
Welcome
Python - Jupyter Notebook
How useful is the model?
Final thoughts
Tuesday, January 18, 2022
Happy New Year!!! (How I got into R storytime...)
Welcome back to my blog as we enter 2022!
What is R?
How I ended up learning R?
Was it easy to learn? How hard is it?
Who would find R useful?
Which do I prefer: Python or R?
Final thoughts
Sunday, November 21, 2021
Is autism a disability?
Introduction
Welcome back to my blog! If you thought you missed my October 2021 post... you didn't๐๐ I took a break from making blog post since there was a lot going on in my life๐ Now I've gotten settled and it's time to start writing! This time, I'd like to introduce a discussion topic that arises on occasion which is: Is autism a disability?
From my research (and I use this term pretty loosely here since I just mean watching related YouTube videos and reading reddit/FB discussions LOL) I've seen a variety of opinions:
- Autism IS a disability because there are some struggles that are unique to autistic people on a regular basis (e.g. meltdowns, shutdowns, sensory overload, being misunderstood by people often etc.)
- Autism IS a disability not because autism in itself is a bad thing to have but rather because society disables autistic people by putting limitations on what it means to be "normal"
- Autism IS NOT a disability because autism can have good and bad traits and it is society that dictates what is and what isn't a disability
- Autism IS NOT a disability because as much as we have other types of diversities (hair color, eye color, skin color, height, weight etc.) we also have neurodiversity
- Autism may or may not be a disability depending on the severity
List of definitions
Definition of disability (US and UK)
US (Americans with Disabilities Act (ADA)):
UK (Equality Act 2010):
- substantial - e.g. takes much longer than it would usually would to complete a daily task like getting dressed
- long-term - e.g. 12 months or more
Definition of autism spectrum disorder
Diagnostic and Statistical Manual of Mental Disorders 5th edition (DSM-V)
A. Persistent deficits in social communication and social interaction across multiple contexts, as manifested by the following, currently or by history:
1. Deficits in social-emotional reciprocity, ranging, for example, from abnormal social approach and failure of normal back-and-forth conversation; to reduced sharing of interests, emotions, or affect; to failure to initiate or respond to social interactions.
2. Deficits in nonverbal communicative behaviors used for social interaction, ranging for example, from poorly integrated verbal and nonverbal communication; to abnormalities in eye contact and body languages or deficits in understanding and use of gestures; to a total lack of facial expressions and nonverbal communication.
3. Deficits in developing, maintaining and understanding relationships, ranging for example, from difficulties adjusting behavior to suit various social contexts; to difficulties in sharing imaginative play or in making friends; to absence of interest in peers.
B. Restricted, repetitive patterns of behavior, interests, or activities, as manifested by at least two of the following, currently or by history:
1. Stereotyped or repetitive body movements, use of objects, or speech (e.g. simple motor stereotypes, lining up toys or flipping objects, echolalia, idiosyncratic phrases)
2. Insistence on sameness, inflexible adherence to routines, or ritualized patterns of verbal or nonverbal behavior (e.g. extreme distress at small changes, difficulties with transitions, rigid thinking patterns, greeting rituals, need to take same route or eat same food every day.
3. Highly restricted, fixated interests that are abnormal in intensity or focus (e.g. strong attachment to or preoccupation with unusual objects, excessively circumscribed or perseverative interests).
4. Hyper- or Hyporeactivity to sensory input or unusual interest in sensory aspects of the environment (e.g. apparent indifference to pain/temperature, adverse response to specific sounds or textures, excessive smelling or touching of objects, visual fascination with lights or movement).
C. Symptoms must be present in the early developmental period (but may not become fully manifest until social demands exceed limited capacities, or may be masked by learned strategies in later life).
D. Symptoms cause clinically significant impairment in social, occupational, or other important areas of current functioning.
E. These disturbances are not better explained by intellectual disability (intellectual developmental disorder) or global cognitive delay. Intellectual disability and autism spectrum disorder frequently co-occur; to make comorbid diagnoses of autism spectrum disorder and intellectual disability, social communication should be below that expected of general developmental level.
Reference: Centers for Disease Control or Prevention (CDC)
International Classification of Diseases 11th revision (ICD-11): Taking into effect starting January 2022
Persistent deficits in the ability to initiate and to sustain reciprocal social interaction and social communication
Range of restrictive, repetitive, and inflexible patterns of behaviour, interests or activities that are clearly atypical or excessive for the individual's age and sociocultural context.
The onset of the disorder occurs during the developmental period, typically in early childhood, but symptoms may not become fully manifest until much later, when social demands exceed limited capacities.
Deficits are sufficiently severe to cause impairment in personal, family, social educational, occupational or other important areas of functioning and are usually a pervasive feature of the individual's functioning observable in all settings, although they may vary according to social, educational, or other context.
Individuals along the spectrum exhibit a full range of intellectual functioning and language abilities.
Reference: ICD-11 for Mortality and Morbidity Statistics (Version: 05/2021)
What do the definitions all mean?
Disability:
- Has some kind of medical condition (can be the mind or body)
- Makes life harder
- Finds it hard to get good grades
- Struggling to get a new job, or sustain a job
- Finds it difficult to talk/make friends/work with people
- Finds it difficult to shop or travel on their own
- Struggles to eat/sleep/go to the toilet/take a bath or shower on their own
- etc...
- Usually long-lasting (months or years)
Autism spectrum disorder
- Difficulties socializing
- Understanding what is considered to be "normal"
- Doing what is considered to be "not normal"
- Doesn't have friends (or a lot of friends)
- Friendships don't last long
- Is not interested in people
- etc...
- Is generally considered to be "different"
- Does the same (or similar) things over and over again
- Says the same words
- Lines up toys/tools etc.
- Paces around and around
- Hand flapping/pacing/spinning/fidgeting etc. often
- Likes things the "same" way
- Same foods
- Same schedules
- Same clothes
- etc.
- Different expression of interests
- Likes things that others aren't interested in
- Likes things a lot more than other people
- Likes very few things compared to other people
- Senses differently
- Finds some lights/sounds/smells etc. a lot more stressful than other people
- Finds some lights/sounds/smells etc. a lot duller than other people
- Starts from when they were small kids
- But might not necessarily struggle until later in life
- Makes life hard(er)
Is autism a disability?
Arguments FOR autism being a disability
- IMPAIRMENT in social interaction and communication
- SUBSTANTIAL LIMITATIONS in life activities
- Present from early developmental period (long-term)
Arguments AGAINST autism being a disability
- Symptoms may not become fully manifest until later when social demands exceed limited capacities - Would the person not be autistic at a time when they may not have been "disabled?"
- Level of functioning may vary depending on the context - If a person struggled greatly in school (e.g. had consistently bad grades), but built a successful career with very few struggles, would the person no longer be considered autistic? Would they no longer become disabled?
- Assessing impairment or level of functioning is up to the interpretation of the assessors and the person themselves - lack of consistency
Conclusion
From a purely literal standpoint it may seem obvious that autism is a disability, but the reality is that there is a lot left to interpretation when defining a "substantially significant impairment" for both an autism diagnosis and disability assessment. It may be safer to assume that autism as a condition is a disability (at least as long as we have the definitions that we have presently) but whether someone identifies as a disabled autistic person is dependent on their situation and the interpretation of the person themselves and the people around them on what it means to be disabled and what it means to be autistic.
Afterthought
- AUTISM AWARENESS (or ACCEPTANCE) MONTH 2021
- Unravelling the mystery of specific learning difficulties
- Story time: Bioinformatics research without a computer science degree
Saturday, September 18, 2021
Project 7: Renaming columns
Welcome to my blog!
If you've been here before, welcome back! Last month, I wrote about my experiences working on a bioinformatics project with some tips for those of you who are interested in data science. If you haven't read it yet, check out 'Story time: Bioinformatics research without a computer science degree'.
For this month, I'd like to write about one of the first steps (if not the first step) of working with new datasets: Renaming columns.
Below is a sample table to illustrate columns and rows.
Please note that for this post, we'll be following through the steps using Jupyter. If you are more familiar using other notebooks, feel free to use what you are comfortable with.
1) Open your notebook
You can find the screen below by opening the command prompt. First type in "jupyter notebook" then copy and paste one of the links generated below.
2) Open a new Python 3 notebook
Once you've opened Jupyter, have a look on the upper right corner. You should be able to see a button called "New". If you click on the New button, you should be able to see a menu of new notebooks, folders or files to open. To select a new Python 3 notebook, click on "Python 3".
The relevant buttons are highlighted in red.
3) Upload CSV UTF-8 file
First, download the dataset that you plan to analyze. Convert the file into a CSV UTF-8 format if necessary. I've found that CSV UTF-8 files are the easiest to upload and analyze using Python 3. Right next to the New button in 2), there is another button called "Upload". You can upload your new file using that button. The file should appear in the menu.
For this post, I will be using the file Injury statistics - work related claims: 2018 - CSV from Stats NZ.
4) Pandas library
You can import the pandas library then rename pandas as pd when using functions from the pandas library. import pandas as pd
Then using the function pd.read_csv(), you can open the CSV file that was uploaded into Jupyter. It would make things easier to set a variable name for viewing the CSV file later on:
fullset_injury_df = pd.read_csv('injury-statistics-work-related-claims-2018-csv.csv')
5) View dataset
Have a quick look at the dataset. Take note of the columns and data described to have a good "feel" of the data. It might help figure out what kind of data analysis might be ideal.
6) Identify column names with symbols, and column names with spaces
Have a look at the dataset columns in 4). Can you find any column names with any symbols? Spaces even? These names can become problematic in the future because they will prevent you from being able to use the dot-notation to access the column.
Wait??? What is a dot notation?
Right. I guess I haven't mentioned it before in any of my past posts. Mmmm. I think a few images might help clear things up.
Here is an example of calling on a column using []. It's useful for any kind of column name.
Here is an example of calling on a column using the dot notation. It's another way of calling a column name.
When you try to read column names that have spaces or symbols using the dot notation, you get a syntax error.
Why not just use [] then? Why would it be necessary to change the column names?
To be honest, in most cases it would be straightforward to use [] to access a column. However, during my project I encountered a situation when Python 3 kept confusing one of my columns (which had a "." inside) as a file name and made it difficult to read the dataset properly. I found that renaming column names that can be accessed using dot notation can avoid such nuisances.
There are three conditions that must be met for column names to be accessed using dot notation:
A) The column name cannot be a number
B) The column name cannot include spaces
C) The column name cannot include symbols
There is an exception to C), as _ is acceptable.
7) Rename variable names
You can use the .rename(columns = {original column name: new column name}) to change the column name. In the example below, I changed the name "Geographic region where injury occurred" to "Geographic_region_where_injury_occurred" to replace the spaces with _.
Let's see if I could access the new column using the dot notation.
It worked! Now, Python no longer has a problem with accessing the new column name using the dot notation! But personally, I find the name takes up a lot of space in the table so I decided to shorten the name to "Geo_region".
8) THE END (or a new beginning?)
Follow the above steps, and you're on your way for the nitty gritty data analysis! This dataset only has 13 variables but some massive datasets can have 100s or 1000s of variables. While a relatively simple process, it can admittedly become tedious when dealing with massive datasets. However, it is an important step to avoid error messages later on. You don't want to get constant error messages! Believe me!!!
Final thoughts
I hope you enjoyed my new post and that it would help you get started with looking at new datasets๐ Many datasets have their own system in naming their columns, so hopefully this will help out with making sense of the data that you receive from other sources. What else would you like to know about datasets? If you're an experienced data scientist, I would love to know your thoughts. Please share your comments!
Next month, I'd like to focus on the neurodiversity portion of this blog. Let's explore a long-lasting question in the autistic community: Is autism a disability?
See you next month!!!
Sunday, August 29, 2021
Story time: Bioinformatics research without a computer science degree
Welcome back to my blog!
I recently finished a graduate program in clinical neurology... where I had undertaken a computational data science project as a key component of my degree! Aside from learning how to do basic python coding and blogging about it, I've never had any "official" experience in using my coding skills for university/research. Usually, I introduce python codes using python projects but this time I'd like to talk about my experience in undertaking bioinformatics-related research without having a computer science component in my bachelor's.
What kind of research did you take part in?
Why did you choose a computational project?
In all honesty I've always liked mathematics and physics, and I'm quite confident at them. I've also had an affinity for computers as well. When I was a child I'd always play with computer games when I wasn't doing my homework and I even joined the computer club at school where we mostly competed against each other in touch typing. When I found out that my program was offering a project which combines neurodegeneration (my main research interest) and computer science, I was ecstatic๐ฒ When I first met my supervisor, they seemed really nice and assured me that they didn't expect me to know everything about coding straight away but I should at least have some interest in learning the skills that would be crucial for my project. I have already started learning coding and was brushing on my loops mostly, so I felt like it was a good fit for me.
How did you acquire the coding skills necessary for the project?
My supervisor initially recommended that I take some online courses that teach basic data science coding. My primary resource was freeCodeCamp.org classes on YouTube, where they taught me the basics of data science python coding. (e.g. dataset importing using pandas, data visualization using matplotlib and seaborn libraries) My project started with the applying for the essential resources, so there was a time gap for me to acquire these skills during the application process. Throughout the project, my supervisor would recommend other essential tools (e.g. openrefine) for data cleaning and mining. For those who don't know what data cleaning and mining is, it's basically the process of removing unwanted data or making the data appear more neat and consistent since the people who made the data may have made some mistakes during the input. I'd also think about what I wanted to do with the data then find libraries or functions that would help reach those objectives. Many of those functions were functions from the pandas library fto transform my data or the scipy.stats module when performing statistical tests for my project. The websites pandas.pyplot.org and docs.scipy.org were particularly useful in learning new functions from the pandas and scipy libraries as they provide the basic outline of the code, detailed explanations of the components of the code, and some examples of codes and corresponding output. I had to refresh my memory on different statistical tests to see which would be most useful for my project. Then it's about practice, practice, and more practice! I've learned a lot about what kind of coding I would need by testing out different codes on my data to see what turns up and find which ones were the most useful. If there was anything I couldn't understand on my own, I would ask members of my research team who were more knowledgeable about statistics and coding.
Is there a difference in research between data science vs wet lab?
- Where am I going to collect my data?
- What kind of data am I going to have?
- How complete is my data going to be?
- How big is my data?
- Are my data coming from one source or multiple sources?
- What kind of statistical methods would most suit my data?
- What programming language am I going to use?
Would you recommend learning computational skills even if you're not sure if you'd like heavily quantitative research?
Since your blog is a combination of python coding and neurodivergence, would you give any advice specific to researchers (or people who want to be researchers) who identify as neurodivergent?
- Learning independently
- Numeracy
- Presentation skills
- Planning and writing long papers
- Managing stress levels
- Communication skills
Would you continue to pursue computational research?
Definitely! I greatly enjoyed my time in my research project. It's something that I never considered before but I now realize is actually a good option for me. Special shoutout to everyone who helped me throughout my journey๐
Final thoughts
Resources (in order of appearance)
A New Frontier: Building bots without code!!!
Dear Readers, Welcome back to this month's Chronicles of a Neurodivergent Programmer. Last month, I took a break from writing about t...
-
LUKAS HAS RETURNED Hi everyone! I know it's been a ridiculously LONG time since my last post, but working full-time and balancing other...
-
Welcome to my blog! If you've been here before, welcome back! Last month, I wrote about my experiences working on a bioinformatics p...
-
Hi all! I've FINALLY gotten around to writing again!!! Missed you all loads! A while ago, I started a poll about what topic to cover n...