Skip to content

Exercise Submission#7

Open
twhmitchell wants to merge 13 commits into
lyy005:masterfrom
twhmitchell:master
Open

Exercise Submission#7
twhmitchell wants to merge 13 commits into
lyy005:masterfrom
twhmitchell:master

Conversation

@twhmitchell

Copy link
Copy Markdown

No description provided.

Comment thread EX_7_Script_Final
if '>' in line: #Check line for >, if present, skip to next line
continue
else:
seqLen=float(len(line)) #Calculate length of sequence

@lyy005 lyy005 Oct 26, 2017

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line=line.strip() # remove the new line character

Comment thread EX_7_Script_Final

b=ggplot(seqDF, aes(x="percentGC")) #Create plot of %GC
b+geom_histogram()+theme_classic() #Plot as histogram

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Comment thread EX_7_Script_Final
icecream.head(20)

a=ggplot(icecream,aes(x="temp",y="sales"))+theme_classic()+geom_point()
a+xlab("Temperature (C)")+ylab("Sales In Dollars")+stat_smooth(method="lm")

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Comment thread EX_7_Script_Final
for i in range(0,4) :
mean_DF.mean_dir[i] = numpy.mean(data_txt[data_txt.region==directions[i]].observations)
mean_DF.region[i] = directions[i]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or you can use:
data_barplot=ggplot(data)
data_barplot+geom_bar(aes(x="factor(region)",y="observations"),stat="summary",fun_y=numpy.mean)

Comment thread EX_7_Script_Final
#Bar Graph had mean plotted across the regions which almost had same values (~15). They almost looked the same.
#But on the scatter plot we north has points centered around 15 while east and west are equally spread and south
#has a bi-modal distribution.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants